Documentation ¶
Index ¶
- Constants
- func CalcMerkleRootFromNodes(nodes [][32]byte) []byte
- func CalcTarget(timespan time.Duration, prevTarget *big.Int, maxTarget *big.Int) *big.Int
- func CreateTx(ins []types.Utxo, outs []types.Withdrawal, ...) (*wire.MsgTx, error)
- func DoubleHash(b []byte) [32]byte
- func RedeemScript(set types.SignatorySet, data []byte) ([]byte, error)
- func Reverse(b []byte) []byte
- func Swap(b []byte) []byte
Constants ¶
View Source
const ( DiffchangeInterval uint32 = 2016 TargetBlockSpacing uint32 = 600 DiffchangeTimespan uint32 = DiffchangeInterval * TargetBlockSpacing CheckpointFeeAmount int64 = 1000 )
Variables ¶
This section is empty.
Functions ¶
func CalcMerkleRootFromNodes ¶
func CalcTarget ¶
func CreateTx ¶
func CreateTx(ins []types.Utxo, outs []types.Withdrawal, sigs map[types.SignatoryPubkey][][64]byte, set *types.SignatorySet) (*wire.MsgTx, error)
func DoubleHash ¶
func RedeemScript ¶
func RedeemScript(set types.SignatorySet, data []byte) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.