Documentation
¶
Index ¶
- Constants
- Variables
- func ClassicAddressToXAddress(rAddress string, tag *uint32, test bool) string
- func DecodeAccountID(rAddress string) ([]byte, error)
- func DecodeNodePublic(nodePublic string) ([]byte, error)
- func EncodeAccountID(accountId []byte) string
- func EncodeXAddress(accountId []byte, tag *uint32, test bool) string
- func NodePublicToClassicAddress(nodePublic string) (string, error)
- func NodePublicToXAddress(nodePublic string, tag *uint32, test bool) string
- func XAddressToClassicAddress(xAddress string) (string, *uint32, bool)
Constants ¶
View Source
const ( // Account address (20 bytes) ACCOUNT_ID = 0 // Account public key (33 bytes) ACCOUNT_PUBLIC_KEY = 0x23 // 28; Validation public key (33 bytes) NODE_PUBLIC = 0x1C )
Variables ¶
View Source
var ( // 5, 68 X_ADDRESS_PREFIX_BYTES_MAIN = []byte{0x05, 0x44} // 4, 147 X_ADDRESS_PREFIX_BYTES_TEST = []byte{0x04, 0x93} )
Functions ¶
func ClassicAddressToXAddress ¶
https://github.com/XRPLF/xrpl.js/blob/main/packages/ripple-address-codec/src/index.ts#L25
func DecodeAccountID ¶
func DecodeNodePublic ¶ added in v0.0.8
func EncodeAccountID ¶
func NodePublicToClassicAddress ¶ added in v0.0.8
func NodePublicToXAddress ¶ added in v0.0.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.