did

package
v0.0.0-...-7f85523 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Base58BTC https://github.com/multiformats/go-multibase/blob/master/multibase.go
	Base58BTCMultiBase = "z"

	// ed25519-pub https://github.com/multiformats/multicodec/blob/master/table.csv
	Ed25519MultiCodec = 0xed

	// DID Twit prefix
	DIDPrefix = "did:twit"
)

Variables

This section is empty.

Functions

func CreateDID

func CreateDID(username string) (*string, ed25519.PrivateKey, error)

func ExpandDID

func ExpandDID(did string) (ed25519.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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