Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signature ¶
type Signature struct { // Body of the signature. Body []byte // Signer identity who produced the signature. Signer []byte }
Signature is a tuple containing signature body and reference to signing identity.
type Signer ¶
type Signer interface { // ID returns Signer identity like public key ID() []byte // Sign produces a cryptographic Signature over the given data with internally managed identity. Sign([]byte) (Signature, error) // Verify performs cryptographic Signature verification of the given data. Verify([]byte, Signature) error }
Signer encapsulates and separates asymmetric cryptographic schema out of Broadcasting protocol logic together with private key management.
Click to show internal directories.
Click to hide internal directories.