Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseContainer ¶
type CloseRequestPearl ¶
type CloseRequestPearl struct { Type string Payload []byte Owners PearlOwner }
type CreatorOwners ¶
type CreatorOwners struct { Creator key.PublicKey // public-key Tokens []JWTokenPearlClaim }
CreatorOwners is the collection with Creators publickey and the JWT-Tokens sign and encrypted
func (*CreatorOwners) AsJSON ¶
func (co *CreatorOwners) AsJSON() *JSONCreatorOwners
AsJSON converts a CreatorOwners into the Json representation
type JSONCreatorOwners ¶
type JSONCreatorOwners struct { Creator string Tokens []JWTokenPearlClaim }
JSONCreatorOwners is the json representation of the CreatorOwners
func (*JSONCreatorOwners) FromJSON ¶
func (jcp *JSONCreatorOwners) FromJSON() (*CreatorOwners, error)
FromJSON converts from Json to CreatorOwners
type JSONPearl ¶
type JSONPearl struct { FingerPrint string Type string Payload string // base64 Owners JSONCreatorOwners }
JSONPearl is the Json representation of a Pearl
type JWTokenPearlClaim ¶
type JWTokenPearlClaim string
JWTokenPearlClaim the Claim encoded as a JWT-Token string
type OpenPearl ¶
type OpenPearl struct { Closed Pearl Payload []byte Claim PearlClaim }
type Pearl ¶
type Pearl struct { FingerPrint []byte Type string Payload []byte Owners CreatorOwners }
Pearl describes an Pearl which is part of an Necklace
func Close ¶
func Close(opa *CloseRequestPearl) (*Pearl, error)
Close a pearl with the EncryptedPayload and Owners
type PearlClaim ¶
type PearlClaim struct { PayloadChecksum string `json:"pcs"` EncryptedPayloadPassword string `json:"epp"` jwt.StandardClaims }
PearlClaim is the enhanced structure to the jwt.StandardClaims
type PearlOwner ¶
type PearlOwner struct { Signer *key.PrivateKey Owners []*key.PublicKey }
Click to show internal directories.
Click to hide internal directories.