View Source Dpos.Utils (DPoS v0.4.0)
Utility functions for DPoS.
Summary
Functions
Converts the wallet address to binary.
Derives a wallet address from the public key.
Encodes the binary in base 16.
Reverses the given binary (from little-endian to big-endian).
Seed a keypair from a secret key.
Signs a message and returns the signature.
Ensures signature is a binary 64 bytes long.
Verifies a message.
Functions
@spec address_to_binary(String.t(), pos_integer()) :: binary()
Converts the wallet address to binary.
Derives a wallet address from the public key.
Encodes the binary in base 16.
Returns nil if binary is nil.
Reverses the given binary (from little-endian to big-endian).
Seed a keypair from a secret key.
Signs a message and returns the signature.
Ensures signature is a binary 64 bytes long.
Returns an empty binary if signature is nil.
Verifies a message.