Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain interface {
ID() string
Sync() error
LatestBlock() Block
Register(Entity) (Claim, error)
Submit(Claim) error
}
Chain represents a chain of blocks that is maintained by a network of nodes
type Claim ¶
type Claim interface {
ID() string
Nonce() string
Type() string
SetType(string)
Issuer() Entity
SetIssuer(Entity)
Subject() Entity
SetSubject(Entity)
Data() map[string]interface{}
SetData(map[string]interface{})
Signatures() []Signature
AddSignature(Signature)
json.Marshaler
}
Claim is
type Entity ¶
type Entity interface {
ID() *did.DID
PublicKeys() []PublicKey
Signers() []Signer
Attributes() map[string]interface{}
}
Entity represents and Ockam entity
type Logger ¶
type Logger interface {
Error(format string, v ...interface{})
Warn(format string, v ...interface{})
Notice(format string, v ...interface{})
Info(format string, v ...interface{})
Debug(format string, v ...interface{})
WithFields(fields Fields) Logger
}
Logger is an interface for Logging.
type NodeDiscoverer ¶
NodeDiscoverer provides the means to discover other nodes on in a network
type PublicKey ¶
type PublicKey interface {
Label() string
SetLabel(string)
Owner() Entity
SetOwner(Entity)
Type() string
Encoding() string
Value() string
DID() *did.DID
}
PublicKey is
type Signature ¶
type Signature interface {
// Type
// https://w3c-ccg.github.io/ld-cryptosuite-registry/#ed25519signature2018
Type() string
Creator() string
Created() string
Domain() string
// Nonce
// https://web-payments.org/vocabs/security#nonce
Nonce() string
// SignatureValue
// https://web-payments.org/vocabs/security#signatureValue
SignatureValue() []byte
SignedValue() []byte
}
Signature is https://w3c-dvcg.github.io/ld-signatures/#linked-data-signature-overview
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ockam
command
|
|
|
key
|
|
|
Package node implements the ockam.Node interface
|
Package node implements the ockam.Node interface |
|
remote/http
Package http implements ockam.Node interface to enable interaction with a remote node that can be commiunicated with over http.
|
Package http implements ockam.Node interface to enable interaction with a remote node that can be commiunicated with over http. |
|
Package random is used to generate random bytes and strings.
|
Package random is used to generate random bytes and strings. |
|
Package test provides utilities for writing tests.
|
Package test provides utilities for writing tests. |
Click to show internal directories.
Click to hide internal directories.