binarycodec

package
v0.0.0-...-9abe75c Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSigningClaimFieldNotFound = errors.New("'Channel' & 'Amount' fields are both required, but were not found")

Functions

func Decode

func Decode(hexEncoded string) (map[string]any, error)

Decode decodes a hex string in the canonical binary format into a JSON transaction object.

func Encode

func Encode(json map[string]any) (string, error)

Encode converts a JSON transaction object to a hex string in the canonical binary format. The binary format is defined in XRPL's core codebase.

func EncodeForMultisigning

func EncodeForMultisigning(json map[string]any, xrpAccountID string) (string, error)

EncodeForMultiSign: encodes a transaction into binary format in preparation for providing one signature towards a multi-signed transaction. (Only encodes fields that are intended to be signed.)

func EncodeForSigning

func EncodeForSigning(json map[string]any) (string, error)

Encodes a transaction into binary format in preparation for signing.

func EncodeForSigningClaim

func EncodeForSigningClaim(json map[string]any) (string, error)

EncodeForPaymentChannelClaim: encodes a payment channel claim into binary format in preparation for signing.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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