Modules§
Structs§
- Extended
Key - Extended key structure
- Mnemonic
- Mnemonic string
- Private
Key - Private key buffer
- Proposal
Hash DataAPI - Public
KeyCompressed - Compressed public key buffer
- Signed
Voucher Wrapper
Enums§
Constants§
Functions§
- compute_
proposal_ hash - Compute proposal hash
- create_
voucher - Create a voucher for payment channel
- deserialize_
constructor_ params - Deserialize Constructor Params
- deserialize_
params - Deserialize Params
- deserialize_
voucher - Deserialize voucher
- get_cid
- Return the CID of a message
- key_
derive - Returns a public key, private key and address given a mnemonic, derivation path and a password (support chinese mnemonic)
- key_
derive_ from_ seed - Returns a public key, private key and address given a seed and derivation path
- key_
generate_ mnemonic - Generates a random mnemonic (English - 24 words)
- key_
recover - Get extended key from private key
- key_
recover_ bls - Get extended key from BLS private key
- serialize_
params - Utilitary function to serialize parameters of a message. Return a CBOR hexstring.
- serialize_
voucher - Serialize voucher
- sign_
voucher - Sign a voucher for payment channel
- transaction_
parse - Parse a CBOR hextring into a filecoin transaction (signed or unsigned).
- transaction_
serialize - Serialize a transaction and return a CBOR hexstring.
- transaction_
sign - Sign a transaction and return a signed message (message + signature).
- transaction_
sign_ raw - Sign a transaction and return a raw signature (RSV format).
- verify_
aggregated_ signature - verify_
signature - Verify a signature. Return a boolean.
- verify_
voucher_ signature - Verify Voucher signature