package
1.1.7
Repository: https://github.com/blocktree/lisk-adapter.git
Documentation: pkg.go.dev

# Functions

DecryptMessageWithPrivateKey decrypts and verifies an encrypted message using the recipients private key.
DecryptPassphraseWithPassword decrypts the given encrypted passphrase with the password using AES-256-CBC.
EncryptMessageWithPrivateKey encrypts and authenticates a message for the given recipient's public key.
EncryptPassphraseWithPassword encrypts the given passphrase with the password using AES-256-CBC.
GetAddressFromPublicKey takes a Lisk public key and returns the associated address.
GetBigNumberStringFromBytes returns the BigNumber representation of the bytes as string.
GetFirstEightBytesReversed returns the first 8 bytes of a byte slice in reversed order.
GetPrivateKeyFromSecret takes a Lisk secret and returns the associated private key.
GetPublicKeyFromSecret takes a Lisk secret and returns the associated public key.
GetSHA256Hash returns the SHA256 hash of a string as byte slice.
SignDataWithPrivateKey takes data and a privateKey and returns a signature.
SignMessageWithPrivateKey takes a message and a privateKey and returns a signature as hex string.
VerifyDataWithPublicKey takes data, a signature and a publicKey and verifies it.
VerifyMessageWithPublicKey takes a message, signature and publicKey and verifies it.