Help us shape the future of Go! Take the 2026 Go Developer Survey

stakeable

package
v1.36.185 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: BSD-3-Clause Imports: 7 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 `json:"locktime"`
	lux.TransferableIn `json:"input"`
}

func (*LockIn) InitRuntime added in v1.22.87

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

func (*LockIn) Verify

func (s *LockIn) Verify() error

type LockOut

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

func (*LockOut) Addresses

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

func (*LockOut) Bytes added in v1.28.28

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

Bytes returns the ZAP-native wire envelope for this LockOut. Envelope = (TypeKindReserved, ShapeKindLockedOutput, ZAP message) where the ZAP message carries Locktime and the inner TransferableOut's own wire envelope (which carries its own TypeKind+ShapeKind+message).

The inner TransferableOut MUST satisfy the wireSerializable contract (Bytes() []byte) — every fx package's wire.go adapter does. Nested LockOut is forbidden by Verify() and panics here to surface the bug.

func (*LockOut) InitRuntime added in v1.22.87

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