Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
Packer represents an Anoncrypt Pack/Unpacker that outputs/reads Aries envelopes.
func New ¶
New will create an Packer instance to 'AnonCrypt' payloads for a given list of recipients. The returned Packer contains all the information required to pack and unpack payloads.
func (*Packer) Pack ¶
func (p *Packer) Pack(contentType string, payload, _ []byte, recipientsPubKeys [][]byte) ([]byte, error)
Pack will encode the payload argument using the protocol defined by the Anoncrypt message of Aries RFC 0334. Anoncrypt ignores the sender argument, it's added to meet the Packer interface. It uses DIDComm typ V2 header value (default envelope 'typ' protected header).
Click to show internal directories.
Click to hide internal directories.