package
0.0.0-20230919112353-bd4e2c0a3a3c
Repository: https://github.com/hyperledger-labs/mirbft.git
Documentation: pkg.go.dev
# Functions
ClientPseudo behaves the same as NodePseudo, except that it returns a crypto module intended for use by the client.
GenerateKeyPair generates a pair of ECDSA keys that can be used for signing and verifying.
New returns a new initialized instance of the Crypto module.
NodePseudo returns a Crypto module to be used by a Node, generating new keys in a pseudo-random manner.
PrivKeyFromFile extracts a private key from a PEM key file.
PubKeyFromFile extracts a public key from a PEM certificate file.
SerializePrivKey serializes a private key into a byte slice.
SerializePubKey serializes a public key into a byte slice.
# Variables
DefaultPseudoSeed is an arbitrary number that the nodes can use as a seed when instantiating its Crypto module.
# Structs
Crypto represents an instance of the Crypto module that can be used at Node instantiation (when calling mirbft.NewNode).
DummyCrypto represents a dummy Crypto module that always produces the same dummy byte slice specified at instantiation as signature.