Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxPrivateKey ¶
type BoxPrivateKey *[32]byte
BoxPrivateKey represents an Entity's crypto private key for public-key cryptography that is interoperable with NaCl: https://nacl.cr.yp.to/box.html.
type BoxPublicKey ¶
type BoxPublicKey *[32]byte
BoxPublicKey represents an Entity's public key for public-key cryptography that is interoperable with NaCl: https://nacl.cr.yp.to/box.html.
type Domain ¶
type Domain struct { DomainID Name ParentID DomainID // BoxPublicKey is used to exchange encrypted messages with the Domain BoxPublicKey BoxPublicKey SignPublicKey SignPublicKey }
Domain is used to represent an Entity domain. Domains can form a hierarchy, i.e., all Domains have a parent Domain, except for the root Domain.
type Entity ¶
type Entity struct { // DomainID for the Entity owner DomainID ID // Name is the unique Entity name within Name // BoxPublicKey is used to exchange encrypted messages BoxPublicKey BoxPublicKey }
Entity represents any entity instance for a given Class
type ID ¶
ID is used as the Entity identifier. The ID timestamp correlates to when the Entity was created.
type SignPrivateKey ¶
type SignPrivateKey *[64]byte
SignPrivateKey represents an Entity's crypto private key for signing messages.
type SignPublicKey ¶
type SignPublicKey *[32]byte
SignPublicKey is the public key used to verify signatures
type SignedULID ¶
type SignedULID []byte
SignedULID is a signed ULID
func SignULID ¶
func SignULID(id ulid.ULID, key SignPrivateKey) SignedULID
SignULID signs the specified ULID
func (SignedULID) Open ¶
func (su SignedULID) Open(key SignPublicKey) (id ulid.ULID, ok bool)
Open verifies the signed ULID using the specified public key