package
0.2.0
Repository: https://github.com/vanadium/core.git
Documentation: pkg.go.dev

# Functions

ErrorfInternal calls ErrInternal.Errorf with the supplied arguments.
ErrorfInvalidPrivateKey calls ErrInvalidPrivateKey.Errorf with the supplied arguments.
ErrorfNoParams calls ErrNoParams.Errorf with the supplied arguments.
ErrorfPrivateKeyNotFound calls ErrPrivateKeyNotFound.Errorf with the supplied arguments.
GetCrypter returns the crypter attached to the context, or nil if no crypter is attached.
MessageInternal calls ErrInternal.Message with the supplied arguments.
MessageInvalidPrivateKey calls ErrInvalidPrivateKey.Message with the supplied arguments.
MessageNoParams calls ErrNoParams.Message with the supplied arguments.
MessagePrivateKeyNotFound calls ErrPrivateKeyNotFound.Message with the supplied arguments.
NewCrypter returns a new Crypter with an empty set of private keys and identity provider parameters.
NewRoot returns a new root identity provider that has the provided blessing name and uses the provided 'master' for setting up identity-based encryption.
ParamsErrInternal extracts the expected parameters from the error's ParameterList.
ParamsErrInvalidPrivateKey extracts the expected parameters from the error's ParameterList.
ParamsErrNoParams extracts the expected parameters from the error's ParameterList.
ParamsErrPrivateKeyNotFound extracts the expected parameters from the error's ParameterList.
WithCrypter derives a new context from the provided one by attaching the provided crypter to it.

# Variables

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

# Structs

Ciphertext represents the ciphertext generated by a Crypter.
Crypter provides operations for encrypting and decrypting messages for principals with specific blessings.
Params represents the public parameters of an identity provider (aka Root).
PrivateKey represent the private key corresponding to a blessing.
Root represents an identity provider for the purposes of blessings based encryption and decryption.
Type definitions ================ WireCiphertext represents the wire format of the ciphertext generated by a Crypter.
WireParams represents the wire format of the public parameters of an identity provider (aka Root).
WirePrivateKey represents the wire format of the private key corresponding to a blessing.