ckb_crypto library

Classes

Blake2b
MsgSignature

Constants

CKB_HASH_PERSONALIZATION → const String
"ckb-default-hash"

Properties

params ECDomainParameters
final
sha3digest SHA3Digest
final

Functions

arrayCopy(dynamic bytes, dynamic srcOffset, dynamic result, dynamic destOffset, dynamic bytesLength) List<int>
blake2b(Uint8List input) Uint8List
blake2bHexString(String hexInput) String
blake2bUtf8String(String utf8Input) String
blake160(String value) String
bytesToHex(List<int> bytes, {bool pad = false, bool include0x = false, int forcePadLen}) String
bytesToInt(List<int> bytes) BigInt
digitHex(String hex) int
hexAdd0x(String hex) String
hexStringToByteArray(String input) Uint8List
intToBytes(BigInt number) List<int>
keccak256(Uint8List input) Uint8List
keccakAscii(String input) Uint8List
keccakUtf8(String input) Uint8List
littleEndian(int number) String
numberToBytes(dynamic number) List<int>
numberToHex(dynamic number, {bool pad = false, bool include0x = false, int forcePadLen}) String
publicKeyFromPrivate(Uint8List privateKey, {bool compress = true}) Uint8List
publicKeyFromPrivateSign(Uint8List privateKey) Uint8List
remove0x(String hex) String
sign(Uint8List messageHash, Uint8List privateKey) MsgSignature
toBytesPadded(BigInt value, int length) List<int>
toHex(String input) String
uint8ListFromList(List<int> data) Uint8List