fingerprint

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDIDKey

func CreateDIDKey(pubKey []byte) (string, string)

CreateDIDKey creates a did:key ID using the multicodec key fingerprint as per the did:key format spec found at: https://w3c-ccg.github.io/did-method-key/#format.

func KeyFingerprint

func KeyFingerprint(code uint64, pubKeyValue []byte) string

KeyFingerprint generates a multicode fingerprint for pubKeyValue (raw key []byte). It is mainly used as the controller ID (methodSpecification ID) of a did key.

func PubKeyFromFingerprint

func PubKeyFromFingerprint(fingerprint string) ([]byte, error)

PubKeyFromFingerprint extracts the raw public key from a did:key fingerprint.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL