Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
/ ckb-auth Public archive

Moved to: https://github.com/nervosnetwork/ckb-auth. A consolidated library featuring numerous blockchains authentication techniques on CKB-VM

License

Notifications You must be signed in to change notification settings

cryptape/ckb-auth

Repository files navigation

ckb-auth

A consolidated library featuring numerous blockchains authentication techniques on CKB-VM. More details in auth.md. We also write a simple script to demonstrate how to use this library.

Motivation

The CKB-VM in CKB has provided a multitude of advanced smart contract functionalities that are not typically found within other blockchain networks. CKB presents a seamless solution for implementing blockchain interoperability. Through the utilization of ckb-auth, a sophisticated smart contract library, users can effortlessly access CKB assets from alternate blockchain wallets, such as Ethereum or Bitcoin, without the use of a CKB wallet.

To illustrate, considering a scenario where Alice only possesses an Ethereum wallet, Bob can transmit assets, including CKB or NFT, to Alice. With the application of ckb-auth, Alice can effectively utilize and transfer these assets using her Ethereum wallet without requiring the creation of a CKB wallet throughout the process.

Integration

The Portal Wallet offers support for the following blockchains:

  • Bitcoin
  • Ethereum
  • EOS
  • Tron
  • Dogecoin
  • CKB

The functionalities have been ported and implemented in ckb-auth. See auth for more information.

We also have some tutorials for following blockchains:

Build

git submodule update --init
make all-via-docker

For more details, please check out CI script.

Test

cd tests/auth_rust && bash run.sh

Test with Spawn (activated after hardfork 2023)

Before running test cases with spawn support, please install ckb-debugger for next hardfork:

cargo install --locked --branch ckb2023 --git https://github.com/nervosnetwork/ckb-standalone-debugger ckb-debugger

Then run:

cd tests/auth_spawn_rust && make all

About

Moved to: https://github.com/nervosnetwork/ckb-auth. A consolidated library featuring numerous blockchains authentication techniques on CKB-VM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •