account

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIDByPubkey

func GetIDByPubkey(pubkey []byte) string

GetIDByPubkey ...

func GetPubkeyByID

func GetPubkeyByID(ID string) []byte

GetPubkeyByID ...

Types

type Account

type Account struct {
	ID        string
	Algorithm crypto.Algorithm
	Pubkey    []byte
	Seckey    []byte
}

Account account of the ios

func NewAccount

func NewAccount(seckey []byte, algo crypto.Algorithm) (*Account, error)

NewAccount create an account

func (*Account) Sign

func (a *Account) Sign(info []byte) *crypto.Signature

Sign sign a tx

Jump to

Keyboard shortcuts

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