burnproof

package
v0.1.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyBurn

func VerifyBurn(proofBytes []byte, address string) error

VerifyBurn verifies a burn proof.

Types

type CoinsProof

type CoinsProof struct {
	MerkleIndex  uint32
	MerkleBranch []chainhash.Hash
	PkScript     []byte
	Transaction  wire.MsgTx
}

CoinsProof is a proof of coins on the old blockchain.

func (*CoinsProof) CalcMerkleRoot

func (c *CoinsProof) CalcMerkleRoot(leafHash chainhash.Hash) chainhash.Hash

CalcMerkleRoot calculates the merkle root under some assumptions.

func (*CoinsProof) Unmarshal

func (c *CoinsProof) Unmarshal(r io.Reader) error

Unmarshal decodes the proof from a byte slice.

Jump to

Keyboard shortcuts

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