GoBigChainDBDriver

package module
v0.0.0-...-46b8a31 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Unofficial Go driver for BigchainDB

Documentation

Index

Constants

View Source
const (
	CREATE   = "CREATE"
	GENESIS  = "GENSIS"
	TRANSFER = "TRANSFER"
	VERSION  = "1.0"
)

Variables

This section is empty.

Functions

func Base64UrlEncode

func Base64UrlEncode(p []byte) string

func HashData

func HashData(p []byte) []byte

func NewCreateTransaction

func NewCreateTransaction(asset JsonObj, metadata JsonObj) transaction

func NewInputItem

func NewInputItem() inputItem

func NewTransferTransaction

func NewTransferTransaction(assetId string, metadata JsonObj) transaction

Types

type BigChainCore

type BigChainCore struct {
}

type BigChainDB

type BigChainDB struct {
	RootEndpoint string
	Headers      *map[string]string
}

func NewBigChainDB

func NewBigChainDB(rootEndpoint string, headers *map[string]string) BigChainDB

func (*BigChainDB) GetListTransactions

func (bc *BigChainDB) GetListTransactions(assetId string, operation string) ([]JsonObj, error)

func (*BigChainDB) GetServerInfo

func (bc *BigChainDB) GetServerInfo() (JsonObj, error)

func (*BigChainDB) GetTransaction

func (bc *BigChainDB) GetTransaction(transaction_id string) (JsonObj, error)

func (*BigChainDB) HttpGetFilter

func (bc *BigChainDB) HttpGetFilter(fn func(string) (JsonObj, error), pubkey crypto.PublicKey, unspent bool) ([]JsonObj, error)

func (*BigChainDB) HttpGetOutputs

func (bc *BigChainDB) HttpGetOutputs(pubkey crypto.PublicKey, unspent bool) ([]string, []int, error)

func (*BigChainDB) NewTransaction

func (bc *BigChainDB) NewTransaction(transaction JsonObj) (string, error)

func (*BigChainDB) TransactionStatus

func (bc *BigChainDB) TransactionStatus(id string) bool

type JsonObj

type JsonObj map[string]interface{}

type PrivateKey

type PrivateKey []byte

func (PrivateKey) String

func (p PrivateKey) String() string

type PublicKey

type PublicKey []byte

func (PublicKey) String

func (p PublicKey) String() string

type Signature

type Signature []byte
type TransactionLink struct {
}

Jump to

Keyboard shortcuts

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