Class B58
Inheritance
System.Object
B58
Assembly: Xrpl.AddressCodec.dll
Syntax
public class B58 : object
Constructors
|
Improve this Doc
View Source
B58(String)
Declaration
public B58(string alphabet)
Parameters
Type |
Name |
Description |
System.String |
alphabet |
|
Methods
|
Improve this Doc
View Source
Decode(String)
Declaration
public byte[] Decode(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
Base58Check-encoded string to decode
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
Decode(String, B58.Version)
Declaration
public byte[] Decode(string input, B58.Version version)
Parameters
Type |
Name |
Description |
System.String |
input |
Base58Check-encoded string to decode
|
B58.Version |
version |
Options object including the version byte(s) and the expected length of the data after decoding
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
Decode(String, B58.Versions)
Declaration
public B58.Decoded Decode(string input, B58.Versions versions)
Parameters
Type |
Name |
Description |
System.String |
input |
Base58Check-encoded string to decode
|
B58.Versions |
versions |
Options object including the version byte(s) and the expected length of the data after decoding
|
Returns
|
Improve this Doc
View Source
Encode(Byte[], String, B58.Versions)
Declaration
public string Encode(byte[] buffer, string versionName, B58.Versions versions)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
Buffer of data to encode.
|
System.String |
versionName |
|
B58.Versions |
versions |
Options object including the version bytes and the expected length of the data to encode.
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Encode(Byte[], B58.Version)
Declaration
public string Encode(byte[] buffer, B58.Version version)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
B58.Version |
version |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
EncodeToBytes(Byte[])
Encodes the given bytes in base58. No checksum is appended.
Declaration
public byte[] EncodeToBytes(byte[] input)
Parameters
Type |
Name |
Description |
System.Byte[] |
input |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
EncodeToBytesChecked(Byte[], Byte[])
Declaration
public byte[] EncodeToBytesChecked(byte[] input, byte[] version)
Parameters
Type |
Name |
Description |
System.Byte[] |
input |
|
System.Byte[] |
version |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
EncodeToBytesChecked(Byte[], Int32)
Declaration
public byte[] EncodeToBytesChecked(byte[] input, int version)
Parameters
Type |
Name |
Description |
System.Byte[] |
input |
|
System.Int32 |
version |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
EncodeToString(Byte[])
Encodes the given bytes in base58. No checksum is appended.
Declaration
public string EncodeToString(byte[] input)
Parameters
Type |
Name |
Description |
System.Byte[] |
input |
|
Returns
Type |
Description |
System.String |
ASCII string
|
|
Improve this Doc
View Source
EncodeToStringChecked(Byte[], Byte[])
Declaration
public string EncodeToStringChecked(byte[] input, byte[] version)
Parameters
Type |
Name |
Description |
System.Byte[] |
input |
|
System.Byte[] |
version |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
EncodeToStringChecked(Byte[], Int32)
Declaration
public string EncodeToStringChecked(byte[] input, int version)
Parameters
Type |
Name |
Description |
System.Byte[] |
input |
|
System.Int32 |
version |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
FindPrefix(Int32, String)
Declaration
public byte[] FindPrefix(int payLoadLength, string desiredPrefix)
Parameters
Type |
Name |
Description |
System.Int32 |
payLoadLength |
|
System.String |
desiredPrefix |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
IsValid(String, B58.Version)
Declaration
public bool IsValid(string input, B58.Version version)
Parameters
Type |
Name |
Description |
System.String |
input |
|
B58.Version |
version |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsValid(String, B58.Versions)
Declaration
public bool IsValid(string input, B58.Versions version)
Parameters
Type |
Name |
Description |
System.String |
input |
|
B58.Versions |
version |
|
Returns
Type |
Description |
System.Boolean |
|