package
3.1.3+incompatible
Repository: https://github.com/filecoin-project/mir.git
Documentation: pkg.go.dev

# Functions

GenerateKeyPair generates a pair of ECDSA keys that can be used for signing and verifying.
InsecureCryptoForTestingOnly returns a CryptoImpl module to be used by a node, generating new keys in a pseudo-random manner.
No description provided by the author
NewDefaultImpl returns a new initialized instance of a MirModule implementation.
No description provided by the author
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 MirModule module.

# Structs

DefaultImpl represents a generic implementation of the MirModule module that can be used at Node instantiation (when calling mir.NewNode).
DummyCrypto represents a dummy MirModule module that always produces the same dummy byte slice specified at instantiation as signature.
No description provided by the author
No description provided by the author

# Interfaces

The Crypto interface represents an implementation of the cryptographic primitives inside the MirModule module.
No description provided by the author