Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2021 Changes in this version + const ASPreImage_TypeID + const AtomicSwap_TypeID + const DSLinker_TypeID + const DSPreImage_TypeID + const DataStore_TypeID + const TXInLinker_TypeID + const TXInPreImage_TypeID + const TXIn_TypeID + const TXOut_TypeID + const Tx_TypeID + const VSPreImage_TypeID + const ValueStore_TypeID + var DefaultASPreImage = ASPreImage + var DefaultDSLinker = DSLinker + var DefaultDSPreImage = DSPreImage + var DefaultTXInLinker = TXInLinker + var DefaultTXInPreImage = TXInPreImage + var DefaultVSPreImage = VSPreImage + type ASPreImage struct + func NewASPreImage(s *capnp.Segment) (ASPreImage, error) + func NewRootASPreImage(s *capnp.Segment) (ASPreImage, error) + func ReadRootASPreImage(msg *capnp.Message) (ASPreImage, error) + func (s ASPreImage) ChainID() uint32 + func (s ASPreImage) Exp() uint32 + func (s ASPreImage) HasOwner() bool + func (s ASPreImage) IssuedAt() uint32 + func (s ASPreImage) Owner() []byte + func (s ASPreImage) SetChainID(v uint32) + func (s ASPreImage) SetExp(v uint32) + func (s ASPreImage) SetIssuedAt(v uint32) + func (s ASPreImage) SetOwner(v []byte) error + func (s ASPreImage) SetTXOutIdx(v uint32) + func (s ASPreImage) SetValue(v uint32) + func (s ASPreImage) SetValue1(v uint32) + func (s ASPreImage) SetValue2(v uint32) + func (s ASPreImage) SetValue3(v uint32) + func (s ASPreImage) SetValue4(v uint32) + func (s ASPreImage) SetValue5(v uint32) + func (s ASPreImage) SetValue6(v uint32) + func (s ASPreImage) SetValue7(v uint32) + func (s ASPreImage) String() string + func (s ASPreImage) TXOutIdx() uint32 + func (s ASPreImage) Value() uint32 + func (s ASPreImage) Value1() uint32 + func (s ASPreImage) Value2() uint32 + func (s ASPreImage) Value3() uint32 + func (s ASPreImage) Value4() uint32 + func (s ASPreImage) Value5() uint32 + func (s ASPreImage) Value6() uint32 + func (s ASPreImage) Value7() uint32 + type ASPreImage_List struct + func NewASPreImage_List(s *capnp.Segment, sz int32) (ASPreImage_List, error) + func (s ASPreImage_List) At(i int) ASPreImage + func (s ASPreImage_List) Set(i int, v ASPreImage) error + func (s ASPreImage_List) String() string + type ASPreImage_Promise struct + func (p ASPreImage_Promise) Struct() (ASPreImage, error) + type AtomicSwap struct + func NewAtomicSwap(s *capnp.Segment) (AtomicSwap, error) + func NewRootAtomicSwap(s *capnp.Segment) (AtomicSwap, error) + func ReadRootAtomicSwap(msg *capnp.Message) (AtomicSwap, error) + func (s AtomicSwap) ASPreImage() ASPreImage + func (s AtomicSwap) HasASPreImage() bool + func (s AtomicSwap) HasTxHash() bool + func (s AtomicSwap) NewASPreImage() (ASPreImage, error) + func (s AtomicSwap) SetASPreImage(v ASPreImage) error + func (s AtomicSwap) SetTxHash(v []byte) error + func (s AtomicSwap) String() string + func (s AtomicSwap) TxHash() []byte + type AtomicSwap_List struct + func NewAtomicSwap_List(s *capnp.Segment, sz int32) (AtomicSwap_List, error) + func (s AtomicSwap_List) At(i int) AtomicSwap + func (s AtomicSwap_List) Set(i int, v AtomicSwap) error + func (s AtomicSwap_List) String() string + type AtomicSwap_Promise struct + func (p AtomicSwap_Promise) ASPreImage() ASPreImage_Promise + func (p AtomicSwap_Promise) Struct() (AtomicSwap, error) + type DSLinker struct + func NewDSLinker(s *capnp.Segment) (DSLinker, error) + func NewRootDSLinker(s *capnp.Segment) (DSLinker, error) + func ReadRootDSLinker(msg *capnp.Message) (DSLinker, error) + func (s DSLinker) DSPreImage() DSPreImage + func (s DSLinker) HasDSPreImage() bool + func (s DSLinker) HasTxHash() bool + func (s DSLinker) NewDSPreImage() (DSPreImage, error) + func (s DSLinker) SetDSPreImage(v DSPreImage) error + func (s DSLinker) SetTxHash(v []byte) error + func (s DSLinker) String() string + func (s DSLinker) TxHash() []byte + type DSLinker_List struct + func NewDSLinker_List(s *capnp.Segment, sz int32) (DSLinker_List, error) + func (s DSLinker_List) At(i int) DSLinker + func (s DSLinker_List) Set(i int, v DSLinker) error + func (s DSLinker_List) String() string + type DSLinker_Promise struct + func (p DSLinker_Promise) DSPreImage() DSPreImage_Promise + func (p DSLinker_Promise) Struct() (DSLinker, error) + type DSPreImage struct + func NewDSPreImage(s *capnp.Segment) (DSPreImage, error) + func NewRootDSPreImage(s *capnp.Segment) (DSPreImage, error) + func ReadRootDSPreImage(msg *capnp.Message) (DSPreImage, error) + func (s DSPreImage) ChainID() uint32 + func (s DSPreImage) Deposit() uint32 + func (s DSPreImage) Deposit1() uint32 + func (s DSPreImage) Deposit2() uint32 + func (s DSPreImage) Deposit3() uint32 + func (s DSPreImage) Deposit4() uint32 + func (s DSPreImage) Deposit5() uint32 + func (s DSPreImage) Deposit6() uint32 + func (s DSPreImage) Deposit7() uint32 + func (s DSPreImage) HasIndex() bool + func (s DSPreImage) HasOwner() bool + func (s DSPreImage) HasRawData() bool + func (s DSPreImage) Index() []byte + func (s DSPreImage) IssuedAt() uint32 + func (s DSPreImage) Owner() []byte + func (s DSPreImage) RawData() []byte + func (s DSPreImage) SetChainID(v uint32) + func (s DSPreImage) SetDeposit(v uint32) + func (s DSPreImage) SetDeposit1(v uint32) + func (s DSPreImage) SetDeposit2(v uint32) + func (s DSPreImage) SetDeposit3(v uint32) + func (s DSPreImage) SetDeposit4(v uint32) + func (s DSPreImage) SetDeposit5(v uint32) + func (s DSPreImage) SetDeposit6(v uint32) + func (s DSPreImage) SetDeposit7(v uint32) + func (s DSPreImage) SetIndex(v []byte) error + func (s DSPreImage) SetIssuedAt(v uint32) + func (s DSPreImage) SetOwner(v []byte) error + func (s DSPreImage) SetRawData(v []byte) error + func (s DSPreImage) SetTXOutIdx(v uint32) + func (s DSPreImage) String() string + func (s DSPreImage) TXOutIdx() uint32 + type DSPreImage_List struct + func NewDSPreImage_List(s *capnp.Segment, sz int32) (DSPreImage_List, error) + func (s DSPreImage_List) At(i int) DSPreImage + func (s DSPreImage_List) Set(i int, v DSPreImage) error + func (s DSPreImage_List) String() string + type DSPreImage_Promise struct + func (p DSPreImage_Promise) Struct() (DSPreImage, error) + type DataStore struct + func NewDataStore(s *capnp.Segment) (DataStore, error) + func NewRootDataStore(s *capnp.Segment) (DataStore, error) + func ReadRootDataStore(msg *capnp.Message) (DataStore, error) + func (s DataStore) DSLinker() DSLinker + func (s DataStore) HasDSLinker() bool + func (s DataStore) HasSignature() bool + func (s DataStore) NewDSLinker() (DSLinker, error) + func (s DataStore) SetDSLinker(v DSLinker) error + func (s DataStore) SetSignature(v []byte) error + func (s DataStore) Signature() []byte + func (s DataStore) String() string + type DataStore_List struct + func NewDataStore_List(s *capnp.Segment, sz int32) (DataStore_List, error) + func (s DataStore_List) At(i int) DataStore + func (s DataStore_List) Set(i int, v DataStore) error + func (s DataStore_List) String() string + type DataStore_Promise struct + func (p DataStore_Promise) DSLinker() DSLinker_Promise + func (p DataStore_Promise) Struct() (DataStore, error) + type TXIn struct + func NewRootTXIn(s *capnp.Segment) (TXIn, error) + func NewTXIn(s *capnp.Segment) (TXIn, error) + func ReadRootTXIn(msg *capnp.Message) (TXIn, error) + func (s TXIn) HasSignature() bool + func (s TXIn) HasTXInLinker() bool + func (s TXIn) NewTXInLinker() (TXInLinker, error) + func (s TXIn) SetSignature(v []byte) error + func (s TXIn) SetTXInLinker(v TXInLinker) error + func (s TXIn) Signature() []byte + func (s TXIn) String() string + func (s TXIn) TXInLinker() TXInLinker + type TXInLinker struct + func NewRootTXInLinker(s *capnp.Segment) (TXInLinker, error) + func NewTXInLinker(s *capnp.Segment) (TXInLinker, error) + func ReadRootTXInLinker(msg *capnp.Message) (TXInLinker, error) + func (s TXInLinker) HasTXInPreImage() bool + func (s TXInLinker) HasTxHash() bool + func (s TXInLinker) NewTXInPreImage() (TXInPreImage, error) + func (s TXInLinker) SetTXInPreImage(v TXInPreImage) error + func (s TXInLinker) SetTxHash(v []byte) error + func (s TXInLinker) String() string + func (s TXInLinker) TXInPreImage() TXInPreImage + func (s TXInLinker) TxHash() []byte + type TXInLinker_List struct + func NewTXInLinker_List(s *capnp.Segment, sz int32) (TXInLinker_List, error) + func (s TXInLinker_List) At(i int) TXInLinker + func (s TXInLinker_List) Set(i int, v TXInLinker) error + func (s TXInLinker_List) String() string + type TXInLinker_Promise struct + func (p TXInLinker_Promise) Struct() (TXInLinker, error) + func (p TXInLinker_Promise) TXInPreImage() TXInPreImage_Promise + type TXInPreImage struct + func NewRootTXInPreImage(s *capnp.Segment) (TXInPreImage, error) + func NewTXInPreImage(s *capnp.Segment) (TXInPreImage, error) + func ReadRootTXInPreImage(msg *capnp.Message) (TXInPreImage, error) + func (s TXInPreImage) ChainID() uint32 + func (s TXInPreImage) ConsumedTxHash() []byte + func (s TXInPreImage) ConsumedTxIdx() uint32 + func (s TXInPreImage) HasConsumedTxHash() bool + func (s TXInPreImage) SetChainID(v uint32) + func (s TXInPreImage) SetConsumedTxHash(v []byte) error + func (s TXInPreImage) SetConsumedTxIdx(v uint32) + func (s TXInPreImage) String() string + type TXInPreImage_List struct + func NewTXInPreImage_List(s *capnp.Segment, sz int32) (TXInPreImage_List, error) + func (s TXInPreImage_List) At(i int) TXInPreImage + func (s TXInPreImage_List) Set(i int, v TXInPreImage) error + func (s TXInPreImage_List) String() string + type TXInPreImage_Promise struct + func (p TXInPreImage_Promise) Struct() (TXInPreImage, error) + type TXIn_List struct + func NewTXIn_List(s *capnp.Segment, sz int32) (TXIn_List, error) + func (s TXIn_List) At(i int) TXIn + func (s TXIn_List) Set(i int, v TXIn) error + func (s TXIn_List) String() string + type TXIn_Promise struct + func (p TXIn_Promise) Struct() (TXIn, error) + func (p TXIn_Promise) TXInLinker() TXInLinker_Promise + type TXOut struct + func NewRootTXOut(s *capnp.Segment) (TXOut, error) + func NewTXOut(s *capnp.Segment) (TXOut, error) + func ReadRootTXOut(msg *capnp.Message) (TXOut, error) + func (s TXOut) AtomicSwap() (AtomicSwap, error) + func (s TXOut) DataStore() (DataStore, error) + func (s TXOut) HasAtomicSwap() bool + func (s TXOut) HasDataStore() bool + func (s TXOut) HasValueStore() bool + func (s TXOut) NewAtomicSwap() (AtomicSwap, error) + func (s TXOut) NewDataStore() (DataStore, error) + func (s TXOut) NewValueStore() (ValueStore, error) + func (s TXOut) SetAtomicSwap(v AtomicSwap) error + func (s TXOut) SetDataStore(v DataStore) error + func (s TXOut) SetValueStore(v ValueStore) error + func (s TXOut) String() string + func (s TXOut) ValueStore() (ValueStore, error) + func (s TXOut) Which() TXOut_Which + type TXOut_List struct + func NewTXOut_List(s *capnp.Segment, sz int32) (TXOut_List, error) + func (s TXOut_List) At(i int) TXOut + func (s TXOut_List) Set(i int, v TXOut) error + func (s TXOut_List) String() string + type TXOut_Promise struct + func (p TXOut_Promise) AtomicSwap() AtomicSwap_Promise + func (p TXOut_Promise) DataStore() DataStore_Promise + func (p TXOut_Promise) Struct() (TXOut, error) + func (p TXOut_Promise) ValueStore() ValueStore_Promise + type TXOut_Which uint16 + const TXOut_Which_atomicSwap + const TXOut_Which_dataStore + const TXOut_Which_valueStore + func (w TXOut_Which) String() string + type Tx struct + func NewRootTx(s *capnp.Segment) (Tx, error) + func NewTx(s *capnp.Segment) (Tx, error) + func ReadRootTx(msg *capnp.Message) (Tx, error) + func (s Tx) HasVin() bool + func (s Tx) HasVout() bool + func (s Tx) NewVin(n int32) (TXIn_List, error) + func (s Tx) NewVout(n int32) (TXOut_List, error) + func (s Tx) SetVin(v TXIn_List) error + func (s Tx) SetVout(v TXOut_List) error + func (s Tx) String() string + func (s Tx) Vin() (TXIn_List, error) + func (s Tx) Vout() (TXOut_List, error) + type Tx_List struct + func NewTx_List(s *capnp.Segment, sz int32) (Tx_List, error) + func (s Tx_List) At(i int) Tx + func (s Tx_List) Set(i int, v Tx) error + func (s Tx_List) String() string + type Tx_Promise struct + func (p Tx_Promise) Struct() (Tx, error) + type VSPreImage struct + func NewRootVSPreImage(s *capnp.Segment) (VSPreImage, error) + func NewVSPreImage(s *capnp.Segment) (VSPreImage, error) + func ReadRootVSPreImage(msg *capnp.Message) (VSPreImage, error) + func (s VSPreImage) ChainID() uint32 + func (s VSPreImage) HasOwner() bool + func (s VSPreImage) Owner() []byte + func (s VSPreImage) SetChainID(v uint32) + func (s VSPreImage) SetOwner(v []byte) error + func (s VSPreImage) SetTXOutIdx(v uint32) + func (s VSPreImage) SetValue(v uint32) + func (s VSPreImage) SetValue1(v uint32) + func (s VSPreImage) SetValue2(v uint32) + func (s VSPreImage) SetValue3(v uint32) + func (s VSPreImage) SetValue4(v uint32) + func (s VSPreImage) SetValue5(v uint32) + func (s VSPreImage) SetValue6(v uint32) + func (s VSPreImage) SetValue7(v uint32) + func (s VSPreImage) String() string + func (s VSPreImage) TXOutIdx() uint32 + func (s VSPreImage) Value() uint32 + func (s VSPreImage) Value1() uint32 + func (s VSPreImage) Value2() uint32 + func (s VSPreImage) Value3() uint32 + func (s VSPreImage) Value4() uint32 + func (s VSPreImage) Value5() uint32 + func (s VSPreImage) Value6() uint32 + func (s VSPreImage) Value7() uint32 + type VSPreImage_List struct + func NewVSPreImage_List(s *capnp.Segment, sz int32) (VSPreImage_List, error) + func (s VSPreImage_List) At(i int) VSPreImage + func (s VSPreImage_List) Set(i int, v VSPreImage) error + func (s VSPreImage_List) String() string + type VSPreImage_Promise struct + func (p VSPreImage_Promise) Struct() (VSPreImage, error) + type ValueStore struct + func NewRootValueStore(s *capnp.Segment) (ValueStore, error) + func NewValueStore(s *capnp.Segment) (ValueStore, error) + func ReadRootValueStore(msg *capnp.Message) (ValueStore, error) + func (s ValueStore) HasTxHash() bool + func (s ValueStore) HasVSPreImage() bool + func (s ValueStore) NewVSPreImage() (VSPreImage, error) + func (s ValueStore) SetTxHash(v []byte) error + func (s ValueStore) SetVSPreImage(v VSPreImage) error + func (s ValueStore) String() string + func (s ValueStore) TxHash() []byte + func (s ValueStore) VSPreImage() VSPreImage + type ValueStore_List struct + func NewValueStore_List(s *capnp.Segment, sz int32) (ValueStore_List, error) + func (s ValueStore_List) At(i int) ValueStore + func (s ValueStore_List) Set(i int, v ValueStore) error + func (s ValueStore_List) String() string + type ValueStore_Promise struct + func (p ValueStore_Promise) Struct() (ValueStore, error) + func (p ValueStore_Promise) VSPreImage() VSPreImage_Promise