Documentation ¶
Index ¶
- type ProofOfBurn
- func (pb *ProofOfBurn) Decode(input []byte) error
- func (pb *ProofOfBurn) Encode() []byte
- func (pb *ProofOfBurn) Sign() (err error)
- func (pb *ProofOfBurn) SignWith0Chain(w *zcncrypto.Wallet) (err error)
- func (pb *ProofOfBurn) SignWithEthereum(b *zcnbridge.BridgeClient) (err error)
- func (pb *ProofOfBurn) UnsignedMessage() string
- func (pb *ProofOfBurn) Verify() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProofOfBurn ¶
type ProofOfBurn struct { TxnID string `json:"0chain_txn_id"` Nonce int64 `json:"nonce"` Amount int64 `json:"amount"` EthereumAddress string `json:"ethereum_address"` Signature []byte `json:"signature,omitempty"` }
func (*ProofOfBurn) Decode ¶
func (pb *ProofOfBurn) Decode(input []byte) error
func (*ProofOfBurn) Encode ¶
func (pb *ProofOfBurn) Encode() []byte
func (*ProofOfBurn) Sign ¶
func (pb *ProofOfBurn) Sign() (err error)
Sign can sign if chain config is initialized
func (*ProofOfBurn) SignWith0Chain ¶ added in v1.7.9
func (pb *ProofOfBurn) SignWith0Chain(w *zcncrypto.Wallet) (err error)
SignWith0Chain can sign with the provided walletString
func (*ProofOfBurn) SignWithEthereum ¶ added in v1.7.9
func (pb *ProofOfBurn) SignWithEthereum(b *zcnbridge.BridgeClient) (err error)
func (*ProofOfBurn) UnsignedMessage ¶ added in v1.7.9
func (pb *ProofOfBurn) UnsignedMessage() string
func (*ProofOfBurn) Verify ¶
func (pb *ProofOfBurn) Verify() (err error)
Click to show internal directories.
Click to hide internal directories.