Skip to content

Commit

Permalink
Update sol spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Jul 30, 2024
1 parent 561c274 commit 251ae55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/sol.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ The corresponding witness must be a proper `WitnessArgs` data structure in molec

## Unlocking Process

The following bytes are verified:
Ed25519 messages can be of any length and does not require hashing. Specifically, for the CCC Solana lock, the message is:

"Signing a CKB transaction: 0x{sigh_hash}\n\nIMPORTANT: Please verify the integrity and authenticity of connected Solana wallet before signing this message\n"

The `{sighasl_all}` is replaced by `sighash_all` in hexadecimal string, with length 64. The string in the last part can be displayed in wallet UIs.

For the ed25519 message, signature, and pubkey, the ed25519 verify function is used. If the verification passes, the signature is successfully verified.

## Examples

```yaml
Expand Down

0 comments on commit 251ae55

Please sign in to comment.