blacknet

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 9 Imported by: 0

README

blacknet lib for golang

donate

blacknet1y36epd3xh7vt2yv2yu7pnk06amfpyqlcc2jlkf4caznmc4xlgqgqc6deuj

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(mnemonic string) string

Address mnemonic string to address

func Decrypt

func Decrypt(mnemonic, account, encrypt string) string

Decrypt decrypt message

func Ed25519

func Ed25519(mnemonic string) (ed25519.PublicKey, ed25519.PrivateKey, error)

Ed25519 mnemonic string to ed25519

func Encrypt

func Encrypt(mnemonic, account, encrypt string) string

Encrypt encrypt message

func Hash

func Hash(str interface{}) []byte

Hash blake2b hash

func NewMnemonic

func NewMnemonic() string

NewMnemonic .

func Sign

func Sign(mnemonic string, message string) string

Sign sign message

func Signature

func Signature(mnemonic, serialized string) string

Signature signature serialized

func Verify

func Verify(account, signature, message string) bool

Verify verify message

Types

This section is empty.

Jump to

Keyboard shortcuts

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