Skip to content

Commit

Permalink
Add missing auth id(0x02~0x05)
Browse files Browse the repository at this point in the history
migrate PR from: nervosnetwork/ckb-production-scripts#75

including
* eos
* tron
* bitcoin(Support UniSat and OKX wallet)
* dogecoin

Special feature for btc/etc, now they can display meaningful messages.

* BTC(UniSat/OKX)
You're signing:
CKB (Bitcoin Layer-2) transaction: 0x{sighash_all in hex}

* ETH(Metamask)
You're signing:
CKB transaction: 0x{sighash_all in hex}
  • Loading branch information
XuJiandong committed Jan 22, 2024
1 parent cd764d7 commit 41d6fed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 82 deletions.
4 changes: 4 additions & 0 deletions c/ckb_identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
#define MAX_PREIMAGE_SIZE 1024
#define MESSAGE_HEX_LEN 64

<<<<<<< HEAD
const char BTC_PREFIX[] = "CKB (Bitcoin Layer) transaction: 0x";
=======
const char BTC_PREFIX[] = "CKB (Bitcoin Layer-2) transaction: 0x";
>>>>>>> bcd9b58 (Add missing auth id(0x02~0x05))
// BTC_PREFIX_LEN = 35
const size_t BTC_PREFIX_LEN = sizeof(BTC_PREFIX) - 1;

Expand Down
82 changes: 0 additions & 82 deletions tests/omni_lock_rust/build.rs

This file was deleted.

0 comments on commit 41d6fed

Please sign in to comment.