stakeable

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockIn

type LockIn struct {
	Locktime           uint64 `serialize:"true" json:"locktime"`
	lux.TransferableIn `serialize:"true" json:"input"`
}

func (*LockIn) Verify

func (s *LockIn) Verify() error

type LockOut

type LockOut struct {
	Locktime            uint64 `serialize:"true" json:"locktime"`
	lux.TransferableOut `serialize:"true" json:"output"`
}

func (*LockOut) Addresses

func (s *LockOut) Addresses() [][]byte

func (*LockOut) Bytes added in v1.2.0

func (s *LockOut) Bytes() []byte

Bytes returns a stable byte representation of this LockOut for use in canonical sort comparisons (see lux.IsSortedTransferableOutputs).

Layout: stakeableLockMarker || big-endian Locktime || inner-output Bytes() (empty if the inner output does not expose Bytes).

The leading 0xFF marker ensures LockOut sorts AFTER any unlocked fxs primitive (whose first byte is a dense TypeKind << 0xFF), preserving the legacy "unlocked first, then locked" ordering that downstream tx SyntacticVerify code expects.

func (*LockOut) InitRuntime

func (s *LockOut) InitRuntime(rt *runtime.Runtime)

func (*LockOut) Verify

func (s *LockOut) Verify() error

Jump to

Keyboard shortcuts

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