Documentation ¶
Overview ¶
current block data
Index ¶
- func CreateOwnership(issueTxId merkle.Digest, issueBlockNumber uint64, ...)
- func DeleteDownToBlock(finalBlockNumber uint64) error
- func DigestForBlock(number uint64) (blockdigest.Digest, error)
- func Finalise() error
- func Get() (blockdigest.Digest, uint64)
- func GetHeight() uint64
- func Initialise() error
- func OwnerOf(txId merkle.Digest) *account.Account
- func StoreIncoming(packedBlock []byte) error
- func TransferOwnership(previousTxId merkle.Digest, transferTxId merkle.Digest, ...)
- type Ownership
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOwnership ¶ added in v0.2.0
func CreateOwnership(issueTxId merkle.Digest, issueBlockNumber uint64, assetIndex transactionrecord.AssetIndex, newOwner *account.Account)
func DeleteDownToBlock ¶ added in v0.2.0
delete from current highest block down to and including the specified block
func DigestForBlock ¶ added in v0.2.0
func DigestForBlock(number uint64) (blockdigest.Digest, error)
func Get ¶
func Get() (blockdigest.Digest, uint64)
get block data for initialising a new block returns: previous block digest and the number for the new block
func OwnerOf ¶ added in v0.2.0
find the owner of a specific transaction (only issue or transfer is allowed)
func StoreIncoming ¶ added in v0.2.0
store an incoming block checking to make sure it is valid first
Types ¶
type Ownership ¶ added in v0.2.0
type Ownership struct { N uint64 `json:"n,string"` TxId merkle.Digest `json:"txId"` IssueTxId merkle.Digest `json:"issue"` AssetIndex transactionrecord.AssetIndex `json:"index"` }
type to represent an ownership record
Source Files ¶
Click to show internal directories.
Click to hide internal directories.