types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationTypeWrapper     = 0
	OperationTypeKeygenInput = 1
	OperationTypeSignInput   = 2

	OperationTypeKeygenOutput = 11
	OperationTypeSignOutput   = 12

	CurveSecp256k1ECDSABitcoin   = 1
	CurveSecp256k1ECDSAEthereum  = 2
	CurveSecp256k1SchnorrBitcoin = 3
	CurveEdwards25519Default     = 11
	CurveEdwards25519Mixin       = 12
)
View Source
const (
	AssetIDPusd = "31d2ea9c-95eb-3355-b65b-ba096853bc18"
)

Variables

This section is empty.

Functions

func DecodeHex

func DecodeHex(s string) []byte

Types

type Operation

type Operation struct {
	Id     string
	Type   uint8
	Curve  uint8
	Public string
	Extra  []byte
}

func DecodeOperation

func DecodeOperation(b []byte) (*Operation, error)

func (*Operation) Encode

func (o *Operation) Encode() []byte

TODO compact format for different type

func (*Operation) EncodeBase64

func (o *Operation) EncodeBase64() string

func (*Operation) EncodeMtgMemo

func (o *Operation) EncodeMtgMemo(appId string) string

func (*Operation) IdBytes

func (o *Operation) IdBytes() []byte

Jump to

Keyboard shortcuts

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