Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDIDKeyByKeyType ¶
BuildDIDKeyByKeyType creates a did key for pubKeyBytes based on the kms keyType.
func EncryptionPubKeyFromDIDKey ¶
EncryptionPubKeyFromDIDKey parses the did:key DID and returns the key's raw value. note: for NIST P ECDSA keys, the raw value does not have the compression point.
In order to use elliptic.Unmarshal() with the raw value, the uncompressed point ([]byte{4}) must be prepended. see https://github.com/golang/go/blob/master/src/crypto/elliptic/elliptic.go#L384.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.