package
4.0.2-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DigestFromString converts a string to a Digest.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
EncodeAndHash returns both the packed representation of the object and its hash.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
GenerateFalconSigner Generates a Falcon Signer.
GenerateOneTimeSignatureSecrets is a version of GenerateOneTimeSignatureSecretsRNG that uses the system-wide randomness source.
GenerateOneTimeSignatureSecretsRNG creates a limited number of secrets that sign messages under OneTimeSignatureIdentifiers in the range [startBatch, startBatch+numBatches).
MaxSize returns a maximum valid message size for this message type.
GenericHashObj Makes it easier to sum using hash interface and Hashable interface.
Hash computes the SHASum512_256 hash of an array of bytes.
MaxSize returns a maximum valid message size for this message type.
HashObj computes a hash of a Hashable object and its type.
HashRep appends the correct hashid before the message to be hashed.
HashRepToBuff appends the correct hashid before the message to be hashed into the provided buffer.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MakePRNG creates a new PRNG from an initial seed.
MaxSize returns a maximum valid message size for this message type.
MultisigAdd adds unisig to an existing msig.
MultisigAddrGen identifes the exact group, version, and devices (Public keys) that it requires to sign Hash("MultisigAddr" || version uint8 || threshold uint8 || PK1 || PK2 || ...).
MultisigAddrGenWithSubsigs is similar to MultisigAddrGen except the input is []Subsig rather than []PublicKey.
MultisigAssemble assembles multiple MultisigSig.
MultisigBatchPrep performs checks on the assembled MultisigSig and adds to the batch.
MultisigMerge merges two Multisigs msig1 and msig2 into msigt.
MultisigPreimageFromPKs makes an empty MultisigSig for a given preimage.
MaxSize returns a maximum valid message size for this message type.
MultisigSign is for each device individually signs the digest.
MaxSize returns a maximum valid message size for this message type.
MultisigVerify verifies an assembled MultisigSig.
NewFalconSigner creates a falconSigner that is used to sign and verify falcon signatures.
NewHash returns a sha512-256 object to do the same operation as Hash().
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
RandBytes fills the provided structure with a set of random bytes.
RandUint63 returns a random 64-bit unsigned integer which can be stored in a 64-bit signed integer without any data loss.
RandUint64 returns a random 64-bit unsigned integer.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
UnmarshalHashType decodes a string into the HashType enum.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.
MaxSize returns a maximum valid message size for this message type.

# Constants

DigestSize is the number of bytes in the preferred hash Digest used here.
FalconMaxSignatureSize Represents the max possible size in bytes of a falcon signature.
FalconSeedSize Represents the size in bytes of the random bytes used to generate Falcon keys.
MaxHashDigestSize is used to bound the max digest size.
types of hashes.
types of hashes.
size of each hash.
types of hashes.
size of each hash.
types of hashes.
size of each hash.

# Variables

SystemRNG implements the RNG interface using the system-wide randomness source (from Go's crypto/rand).

# Structs

FalconSigner is the implementation of Signer for the Falcon signature scheme.
FalconVerifier implements the type Verifier interface for the falcon signature scheme.
HashFactory is responsible for generating new hashes accordingly to the type it stores.
A HeartbeatProof is functionally equivalent to a OneTimeSignature, but it has been cleaned up for use as a transaction field in heartbeat transactions.
MultisigSig is the structure that holds multiple Subsigs.
MultisigSubsig is a struct that holds a pair of public key and signatures signatures may be empty.
A OneTimeSignature is a cryptographic signature that is produced a limited number of times and provides forward integrity.
A OneTimeSignatureIdentifier is an identifier under which a OneTimeSignature is produced on a given message.
OneTimeSignatureSecrets are used to produced unforgeable signatures over a message.
OneTimeSignatureSecretsPersistent denotes the fields of a OneTimeSignatureSecrets that get stored to persistent storage (through reflection on exported fields).
A OneTimeSignatureSubkeyBatchID identifies an ephemeralSubkey of a batch for the purposes of signing it with the top-level master key.
A OneTimeSignatureSubkeyOffsetID identifies an ephemeralSubkey of a specific offset within a batch, for the purposes of signing it with the batch subkey.
OneTimeSigner is a wrapper for OneTimeSignatureSecrets that also includes the appropriate KeyDilution value.
PRNG is a pseudo-random implementation of RNG, used for deterministic testing.

# Interfaces

Hashable is an interface implemented by an object that can be represented with a sequence of bytes to be hashed or signed, together with a type ID to distinguish different types of objects.
RNG represents a randomness source.

# Type aliases

Digest represents a 32-byte value holding the 256-bit Hash digest.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenericDigest is a digest that implements CustomSizeDigest, and can be used as hash output.
HashType represents different hash functions.
A OneTimeSignatureVerifier is used to identify the holder of OneTimeSignatureSecrets and prove the authenticity of OneTimeSignatures against some OneTimeSignatureIdentifier.
SecretKey is casted from SignatureSecrets.