Documentation ¶
Index ¶
- func Accept(did core.DID, t Type) bool
- func New(method Type, hStorage managed.Wallet, args ...string) (id core.DID, err error)
- func NewDoc(pk, addr string) (d *did.Doc, err error)
- func NewFromDID(hStorage managed.Wallet, didStr ...string) (id core.DID, err error)
- func NewKey(hStorage managed.Wallet, _ ...string) (id core.DID, err error)
- func NewKeyFromDID(hStorage managed.Wallet, didStr string) (id core.DID, err error)
- func NewPeer(hStorage managed.Wallet, args ...string) (id core.DID, err error)
- func NewPeerFromDID(hStorage managed.Wallet, d *api.DID) (id core.DID, err error)
- func NewPeerFromDoc(hStorage managed.Wallet, didDoc string) (id core.DID, err error)
- func String(d string) string
- type Base
- func (b Base) AEndp() (ae service.Addr, err error)
- func (b Base) DOC() core.DIDDoc
- func (b Base) Did() string
- func (b Base) KID() string
- func (b Base) Packager() api.Packager
- func (b Base) SavePairwiseForDID(_ managed.Wallet, _ core.DID, _ core.PairwiseMeta)
- func (b Base) SetAEndp(_ service.Addr)
- func (b Base) SignKey() any
- func (b Base) StartEndp(_ managed.Wallet, _ string)
- func (b Base) Storage() managed.Wallet
- func (b Base) Store(_, _ managed.Wallet)
- func (b Base) StoreResult() error
- func (b Base) String() string
- func (b Base) URI() string
- func (b Base) VerKey() string
- type Key
- type Peer
- func (p Peer) AEndp() (ae service.Addr, err error)
- func (p Peer) Did() string
- func (p Peer) NewDoc(ae service.Addr) core.DIDDoc
- func (p Peer) RecipientKeys() []string
- func (p Peer) Route() []string
- func (p Peer) SavePairwiseForDID(mStorage managed.Wallet, theirDID core.DID, pw core.PairwiseMeta)
- func (p Peer) String() string
- func (p Peer) URI() string
- func (p Peer) VerKey() string
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromDID ¶ added in v0.30.15
func NewKeyFromDID ¶
NewKeyFromDID doesn't create a totally new did:key but it stores its pubkey to our KMS. We need it there for cryptos to work.
func NewPeerFromDID ¶ added in v0.30.15
func NewPeerFromDoc ¶ added in v0.30.15
NewPeerFromDoc doesn't create a totally new did:peer but it saves its pubkey to our kms for us to be able to use cryptos with them.
Types ¶
type Base ¶ added in v0.30.15
type Base struct {
// contains filtered or unexported fields
}
func (Base) SavePairwiseForDID ¶ added in v0.30.15
func (Base) StoreResult ¶ added in v0.30.15
type Peer ¶ added in v0.30.15
type Peer struct {
Base
}
func (Peer) RecipientKeys ¶ added in v0.30.15
func (Peer) SavePairwiseForDID ¶ added in v0.30.15
Click to show internal directories.
Click to hide internal directories.