package
0.4.0-dev.10
Repository: https://github.com/sedaprotocol/seda-chain.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
GenerateSEDAKeys generates a new set of SEDA keys and saves them to the SEDA key file, along with the provided validator address.
GetProof returns the merkle proof for the entry at the given index.
LoadSEDAPubKeys loads the SEDA key file from the given path and returns a list of index-public key pairs.
LoadSEDASigner loads the SEDA keys from a given file path and returns a SEDASigner interface.
No description provided by the author
PubKeyToAddress converts a public key in the 65-byte uncompressed format into the Ethereum address format, which is defined as the rightmost 160 bits of Keccak hash of an ECDSA public key without the 0x04 prefix.
RootFromEntries computes the root of a merkle tree whose leaves are the hashes of the given entries.
RootFromLeaves computes the root of a merkle tree with the given leaves.
ValidateSEDAPubKeys ensures that the provided indexed public keys conform to SEDA keys specifications.
No description provided by the author
# Constants
SEDAKeyFileName defines the SEDA key file name.
No description provided by the author
SEDA domain separators.
SEDA domain separators.
# Interfaces
No description provided by the author
# Type aliases
SEDAKeyIndex enumerates the SEDA key indices.