users

package
v0.0.0-...-fca5b4a Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTypeEd25519   = 1
	KeyTypeSecp256k1 = 2
)

Variables

View Source
var EnumNamesKeyType = map[int]string{
	KeyTypeEd25519:   "Ed25519",
	KeyTypeSecp256k1: "Secp256k1",
}

Functions

func AccountAddCoins

func AccountAddCoins(builder *flatbuffers.Builder, coins flatbuffers.UOffsetT)

func AccountAddPubkey

func AccountAddPubkey(builder *flatbuffers.Builder, pubkey flatbuffers.UOffsetT)

func AccountEnd

func AccountEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func AccountStart

func AccountStart(builder *flatbuffers.Builder)

func AccountStartCoinsVector

func AccountStartCoinsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func CoinAddAmount

func CoinAddAmount(builder *flatbuffers.Builder, amount int64)

func CoinAddDenom

func CoinAddDenom(builder *flatbuffers.Builder, denom flatbuffers.UOffsetT)

func CoinEnd

func CoinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func CoinStart

func CoinStart(builder *flatbuffers.Builder)

func CreateCoin

func CreateCoin(builder *flatbuffers.Builder, denom string, amount int64) flatbuffers.UOffsetT

CreateCoin encodes a new coin

func CreatePubKey

func CreatePubKey(builder *flatbuffers.Builder, typ int, data []byte) flatbuffers.UOffsetT

CreatePubKey encodes a new pubkey

func CreateSimpleAccount

func CreateSimpleAccount(builder *flatbuffers.Builder, denom string,
	amount int64, typ int, data []byte) flatbuffers.UOffsetT

CreateSimpleAccount starts an account with a pub key and one type of coin

func PubKeyAddKey

func PubKeyAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT)

func PubKeyAddType

func PubKeyAddType(builder *flatbuffers.Builder, type_ int8)

func PubKeyEnd

func PubKeyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func PubKeyStart

func PubKeyStart(builder *flatbuffers.Builder)

func PubKeyStartKeyVector

func PubKeyStartKeyVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func GetRootAsAccount

func GetRootAsAccount(buf []byte, offset flatbuffers.UOffsetT) *Account

func (*Account) Coins

func (rcv *Account) Coins(obj *Coin, j int) bool

func (*Account) CoinsLength

func (rcv *Account) CoinsLength() int

func (*Account) Init

func (rcv *Account) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Account) Pubkey

func (rcv *Account) Pubkey(obj *PubKey) *PubKey

func (*Account) Table

func (rcv *Account) Table() flatbuffers.Table

type Coin

type Coin struct {
	// contains filtered or unexported fields
}

func GetRootAsCoin

func GetRootAsCoin(buf []byte, offset flatbuffers.UOffsetT) *Coin

func (*Coin) Amount

func (rcv *Coin) Amount() int64

func (*Coin) Denom

func (rcv *Coin) Denom() []byte

func (*Coin) Init

func (rcv *Coin) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Coin) MutateAmount

func (rcv *Coin) MutateAmount(n int64) bool

func (*Coin) Table

func (rcv *Coin) Table() flatbuffers.Table

type PubKey

type PubKey struct {
	// contains filtered or unexported fields
}

func GetRootAsPubKey

func GetRootAsPubKey(buf []byte, offset flatbuffers.UOffsetT) *PubKey

func (*PubKey) Init

func (rcv *PubKey) Init(buf []byte, i flatbuffers.UOffsetT)

func (*PubKey) Key

func (rcv *PubKey) Key(j int) byte

func (*PubKey) KeyBytes

func (rcv *PubKey) KeyBytes() []byte

func (*PubKey) KeyLength

func (rcv *PubKey) KeyLength() int

func (*PubKey) MutateType

func (rcv *PubKey) MutateType(n int8) bool

func (*PubKey) Table

func (rcv *PubKey) Table() flatbuffers.Table

func (*PubKey) Type

func (rcv *PubKey) Type() int8

Jump to

Keyboard shortcuts

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