Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - type KeyAgreementKey2019
 - func (k KeyAgreementKey2019) Controller() string
 - func (k KeyAgreementKey2019) ID() string
 - func (k KeyAgreementKey2019) JsonLdContext() string
 - func (k KeyAgreementKey2019) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
 - func (k KeyAgreementKey2019) MarshalJSON() ([]byte, error)
 - func (k KeyAgreementKey2019) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
 - func (k KeyAgreementKey2019) Type() string
 - func (k *KeyAgreementKey2019) UnmarshalJSON(bytes []byte) error
 
- type KeyAgreementKey2020
 - func (k KeyAgreementKey2020) Controller() string
 - func (k KeyAgreementKey2020) ID() string
 - func (k KeyAgreementKey2020) JsonLdContext() string
 - func (k KeyAgreementKey2020) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
 - func (k KeyAgreementKey2020) MarshalJSON() ([]byte, error)
 - func (k KeyAgreementKey2020) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
 - func (k KeyAgreementKey2020) Type() string
 - func (k *KeyAgreementKey2020) UnmarshalJSON(bytes []byte) error
 
Constants ¶
      View Source
      
  
    const ( JsonLdContext2019 = "https://w3id.org/security/suites/x25519-2019/v1" Type2019 = "X25519KeyAgreementKey2019" )
      View Source
      
  
const ( JsonLdContext2020 = "https://w3id.org/security/suites/x25519-2020/v1" Type2020 = "X25519KeyAgreementKey2020" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyAgreementKey2019 ¶
type KeyAgreementKey2019 struct {
	// contains filtered or unexported fields
}
    func NewKeyAgreementKey2019 ¶
func NewKeyAgreementKey2019(id string, pubkey *x25519.PublicKey, controller did.DID) *KeyAgreementKey2019
func (KeyAgreementKey2019) Controller ¶
func (k KeyAgreementKey2019) Controller() string
func (KeyAgreementKey2019) ID ¶
func (k KeyAgreementKey2019) ID() string
func (KeyAgreementKey2019) JsonLdContext ¶
func (k KeyAgreementKey2019) JsonLdContext() string
func (KeyAgreementKey2019) KeyExchange ¶
func (k KeyAgreementKey2019) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
func (KeyAgreementKey2019) MarshalJSON ¶
func (k KeyAgreementKey2019) MarshalJSON() ([]byte, error)
func (KeyAgreementKey2019) PrivateKeyIsCompatible ¶
func (k KeyAgreementKey2019) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
func (KeyAgreementKey2019) Type ¶
func (k KeyAgreementKey2019) Type() string
func (*KeyAgreementKey2019) UnmarshalJSON ¶
func (k *KeyAgreementKey2019) UnmarshalJSON(bytes []byte) error
type KeyAgreementKey2020 ¶
type KeyAgreementKey2020 struct {
	// contains filtered or unexported fields
}
    func NewKeyAgreementKey2020 ¶
func NewKeyAgreementKey2020(id string, pubkey *x25519.PublicKey, controller did.DID) *KeyAgreementKey2020
func (KeyAgreementKey2020) Controller ¶
func (k KeyAgreementKey2020) Controller() string
func (KeyAgreementKey2020) ID ¶
func (k KeyAgreementKey2020) ID() string
func (KeyAgreementKey2020) JsonLdContext ¶
func (k KeyAgreementKey2020) JsonLdContext() string
func (KeyAgreementKey2020) KeyExchange ¶
func (k KeyAgreementKey2020) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
func (KeyAgreementKey2020) MarshalJSON ¶
func (k KeyAgreementKey2020) MarshalJSON() ([]byte, error)
func (KeyAgreementKey2020) PrivateKeyIsCompatible ¶
func (k KeyAgreementKey2020) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
func (KeyAgreementKey2020) Type ¶
func (k KeyAgreementKey2020) Type() string
func (*KeyAgreementKey2020) UnmarshalJSON ¶
func (k *KeyAgreementKey2020) UnmarshalJSON(bytes []byte) error
 Click to show internal directories. 
   Click to hide internal directories.