authorizer

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Methods and types to interact with the authorizer nodes. Authorizer nodes are the nodes that authorize the burn operations, whether on to be able to perform corresponding mint operations.

Index

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)

Jump to

Keyboard shortcuts

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