key

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DID

func DID(privateKey []byte) string

DID returns autonomy DID key of a private key

func PublicKey

func PublicKey(privateKey []byte) []byte

PublicKey return public key bytes of a private key

func PublicKeyFromDID

func PublicKeyFromDID(did string) ([]byte, error)

PublicKeyFromDID return public key bytes of a give DID key.

func Sign

func Sign(privateKey []byte, message string) (string, error)

Sign returns the signature of a message using the given private key

func VerifySignature

func VerifySignature(did, message, signature string) bool

VerifySignature validates the signature of a message with the given public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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