LyraCrypto class

crypto routine for Lyra wallet/blockchain.

Constructors

LyraCrypto()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checksum(List<int> input) List<int>
crc checksum of byte array
generateWallet() List<String>
generate a Lyra wallet, return key pair
isAccountIdValid(String accountId) bool
check if account ID or wallet address is valid
isPrivateKeyValid(String privateKey) bool
check if private key is valid
lyraDec(String input) String
decode private key to hex encoding of ECDSA private key
lyraDecAccountId(String accountId) String
decode account ID to hex encoding of ECDSA public key
lyraDecToBytes(String input) Uint8List
decode private key to byte array of ECDSA private key
lyraEnc(List<int> input) String
Encode with checksum
lyraEncPub(List<int> pubKeyBytes) String
encode a Lyra account ID from ECDSA public key
privateKeyHexToPublicKey(String prvHex) Uint8List
privateKeyIntToPublicKey(BigInt prvInt) Uint8List
privateKeyToPublicKey(Uint8List prvkey) Uint8List
prvToPub(String prvkey) String
get Account ID from a private key
sha256(List<int> input) List<int>
sha256 digest
sign(String msg, String prvkey) String
sign a message with private key
verify(String msg, String accountId, String signature) bool
verify a message by signature and account ID