Class K256KeyGenerator
Inheritance
System.Object
K256KeyGenerator
Assembly: Xrpl.Keypairs.dll
Syntax
public class K256KeyGenerator : object
Methods
|
Improve this Doc
View Source
ComputePrivateGen(Byte[])
Declaration
public static BigInteger ComputePrivateGen(byte[] seedBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
seedBytes |
|
Returns
Type |
Description |
BigInteger |
|
|
Improve this Doc
View Source
ComputePublicGenerator(BigInteger)
Declaration
public static ECPoint ComputePublicGenerator(BigInteger privateGen)
Parameters
Type |
Name |
Description |
BigInteger |
privateGen |
secret scalar
|
Returns
Type |
Description |
ECPoint |
the corresponding public key is the public generator (aka public root key, master public key).
|
|
Improve this Doc
View Source
ComputePublicKey(BigInteger)
Declaration
public static ECPoint ComputePublicKey(BigInteger secretKey)
Parameters
Type |
Name |
Description |
BigInteger |
secretKey |
secret point on the curve as BigInteger
|
Returns
Type |
Description |
ECPoint |
corresponding public point
|
|
Improve this Doc
View Source
ComputePublicKey(Byte[], UInt32)
Declaration
public static byte[] ComputePublicKey(byte[] publicGenBytes, uint accountNumber)
Parameters
Type |
Name |
Description |
System.Byte[] |
publicGenBytes |
|
System.UInt32 |
accountNumber |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
ComputeScalar(Byte[], Nullable<UInt32>)
Declaration
public static BigInteger ComputeScalar(byte[] seedBytes, uint? discriminator)
Parameters
Type |
Name |
Description |
System.Byte[] |
seedBytes |
- a bytes sequence of arbitrary length which will be hashed
|
System.Nullable<System.UInt32> |
discriminator |
- nullable optional uint32 to hash
|
Returns
Type |
Description |
BigInteger |
a number between [1, order -1] suitable as a private key
|
|
Improve this Doc
View Source
ComputeSecretKey(BigInteger, UInt32)
Declaration
public static BigInteger ComputeSecretKey(BigInteger privateGen, uint accountNumber)
Parameters
Type |
Name |
Description |
BigInteger |
privateGen |
|
System.UInt32 |
accountNumber |
|
Returns
Type |
Description |
BigInteger |
|
|
Improve this Doc
View Source
From128Seed(Byte[], Int32)
Declaration
public static K256KeyPair From128Seed(byte[] seedBytes, int keyIndex)
Parameters
Type |
Name |
Description |
System.Byte[] |
seedBytes |
|
System.Int32 |
keyIndex |
|
Returns