encoder

package
v0.0.0-...-8bbf72a Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ARC0026URLHANDLER = "algorand"

Variables

This section is empty.

Functions

This section is empty.

Types

type AUrlTxn

type AUrlTxn struct {
	AUrlTxnKeyCommon
	AUrlTxnKeyreg
}

func MakeQRKeyRegRequest

func MakeQRKeyRegRequest(txn RawTxn) (*AUrlTxn, error)

func MakeQRKeyRegRequestEncodedTxn

func MakeQRKeyRegRequestEncodedTxn(encodedTxn []byte) (*AUrlTxn, error)

func (AUrlTxn) Print

func (krg AUrlTxn) Print()

func (AUrlTxn) ProduceQRCode

func (krg AUrlTxn) ProduceQRCode() (string, error)

func (AUrlTxn) String

func (krg AUrlTxn) String() string

type AUrlTxnKeyCommon

type AUrlTxnKeyCommon struct {
	Sender string  `url:"-"`
	Type   string  `url:"type"`
	Fee    *uint64 `url:"fee,omitempty"`
}

type AUrlTxnKeyreg

type AUrlTxnKeyreg struct {
	VotePK          *string `url:"votekey,omitempty"`
	SelectionPK     *string `url:"selkey,omitempty"`
	StateProofPK    *string `url:"sprfkey,omitempty"`
	VoteFirst       *uint64 `url:"votefst,omitempty"`
	VoteLast        *uint64 `url:"votelst,omitempty"`
	VoteKeyDilution *uint64 `url:"votekd,omitempty"`
}

func (AUrlTxnKeyreg) String

func (krg AUrlTxnKeyreg) String() string

type RawTxn

type RawTxn struct {
	Txn types.Transaction `codec:"txn"`
}

Jump to

Keyboard shortcuts

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