Documentation ¶
Index ¶
Constants ¶
View Source
const ( DidPrefix = "did:knox:" ProofType = "Ed25519VerificationKey2020" )
Variables ¶
View Source
var MultiCodecPrefix = []byte{0xed, 0x01}
Functions ¶
Types ¶
type CryptoManager ¶
type CryptoManager interface { GenerateKeyPair(mnemonic string) (*KeyPairs, error) GenerateMnemonic() (string, error) }
func NewCryptoManager ¶
func NewCryptoManager() CryptoManager
type KeyPairs ¶
type KeyPairs struct { Mnemonic string MasterPublicKey string MasterPrivateKey []byte AuthenticationPublicKey string AuthenticationPrivateKey []byte CapabilityInvocationPublicKey string CapabilityInvocationPrivateKey []byte CapabilityDelegationPublicKey string CapabilityDelegationPrivateKey []byte AssertionMethodPublicKey string AssertionMethodPrivateKey []byte }
func (*KeyPairs) GetPrivateKey ¶
func (k *KeyPairs) GetPrivateKey(relation signer.VerificationRelation) []byte
func (*KeyPairs) GetPublicKey ¶
func (k *KeyPairs) GetPublicKey(relation signer.VerificationRelation) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.