Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ThirdPartyKeysDB is a store name containing keys of third party agents.
ThirdPartyKeysDB = "thirdpartykeysdb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
Packer represents an Authcrypt Pack/Unpacker that outputs/reads Aries envelopes.
func New ¶
New will create an Packer instance to 'AuthCrypt' payloads for a given sender and list of recipients keys. It opens thirdPartyKS store (or fetch cached one) that contains third party keys. This store must be pre-populated with the sender key required by a recipient to Unpack a JWE envelope. It is not needed by the sender (as the sender packs the envelope with its own key). The returned Packer contains all the information required to pack and unpack payloads.
Click to show internal directories.
Click to hide internal directories.