Class FfiWrapper
Inheritance
System.Object
FfiWrapper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Catalyst.Core.Modules.Cryptography.BulletProofs.dll
Syntax
public sealed class FfiWrapper : ICryptoContext
Properties
|
Improve this Doc
View Source
PrivateKeyLength
Declaration
public int PrivateKeyLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PublicKeyLength
Declaration
public int PublicKeyLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SignatureContextMaxLength
Declaration
public int SignatureContextMaxLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SignatureLength
Declaration
public int SignatureLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
BatchVerifyRangeProof(List<Byte[]>, List<Byte32>, List<Byte32>)
Declaration
public bool BatchVerifyRangeProof(List<byte[]> rangeproofs, List<Byte32> oldCommitments, List<Byte32> deltaCommitments)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Byte[]> |
rangeproofs |
|
System.Collections.Generic.List<Byte32> |
oldCommitments |
|
System.Collections.Generic.List<Byte32> |
deltaCommitments |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CTransactionEntry(IPublicKey, Byte32, Byte32, Byte32, Int32)
Declaration
public Byte64 CTransactionEntry(IPublicKey publicKey, Byte32 value, Byte32 blinding, Byte32 totalFees, int noParticipants)
Parameters
Returns
|
Improve this Doc
View Source
CtSign(List<Byte64>, IPrivateKey, Byte32)
Declaration
public ISignature CtSign(List<Byte64> cTransactionEntries, IPrivateKey privateKey, Byte32 blinding)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Byte64> |
cTransactionEntries |
|
IPrivateKey |
privateKey |
|
Byte32 |
blinding |
|
Returns
|
Improve this Doc
View Source
CtVerify(List<Byte64>, ISignature)
Declaration
public bool CtVerify(List<Byte64> cTransactionEntries, ISignature cTSignature)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Byte64> |
cTransactionEntries |
|
ISignature |
cTSignature |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ExportPrivateKey(IPrivateKey)
Declaration
public byte[] ExportPrivateKey(IPrivateKey privateKey)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
ExportPublicKey(IPublicKey)
Declaration
public byte[] ExportPublicKey(IPublicKey publicKey)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
GeneratePedersenCommitment(Byte32, Byte32)
Declaration
public Byte32 GeneratePedersenCommitment(Byte32 value, Byte32 blinding)
Parameters
Returns
|
Improve this Doc
View Source
GeneratePrivateKey()
Declaration
public IPrivateKey GeneratePrivateKey()
Returns
|
Improve this Doc
View Source
GenerateRangeProof(Byte32, Byte32)
Declaration
public byte[] GenerateRangeProof(Byte32 value, Byte32 blinding)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
GetPrivateKeyFromBytes(Byte[])
Declaration
public IPrivateKey GetPrivateKeyFromBytes(byte[] privateKeyBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
privateKeyBytes |
|
Returns
|
Improve this Doc
View Source
GetPublicKeyFromBytes(Byte[])
Declaration
public IPublicKey GetPublicKeyFromBytes(byte[] publicKeyBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
publicKeyBytes |
|
Returns
|
Improve this Doc
View Source
GetPublicKeyFromPrivateKey(IPrivateKey)
Declaration
public IPublicKey GetPublicKeyFromPrivateKey(IPrivateKey privateKey)
Parameters
Returns
|
Improve this Doc
View Source
GetSignatureFromBytes(Byte[], Byte[])
Declaration
public ISignature GetSignatureFromBytes(byte[] signatureBytes, byte[] publicKeyBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
signatureBytes |
|
System.Byte[] |
publicKeyBytes |
|
Returns
|
Improve this Doc
View Source
Sign(IPrivateKey, Byte[], Byte[])
Declaration
public ISignature Sign(IPrivateKey privateKey, byte[] messageBytes, byte[] contextBytes)
Parameters
Type |
Name |
Description |
IPrivateKey |
privateKey |
|
System.Byte[] |
messageBytes |
|
System.Byte[] |
contextBytes |
|
Returns
|
Improve this Doc
View Source
Verify(ISignature, Byte[], Byte[])
Declaration
public bool Verify(ISignature signature, byte[] message, byte[] context)
Parameters
Type |
Name |
Description |
ISignature |
signature |
|
System.Byte[] |
message |
|
System.Byte[] |
context |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
VerifyRangeProof(Byte[], Byte32, Byte32)
Declaration
public bool VerifyRangeProof(byte[] rangeproof, Byte32 oldCommitment, Byte32 deltaCommitment)
Parameters
Type |
Name |
Description |
System.Byte[] |
rangeproof |
|
Byte32 |
oldCommitment |
|
Byte32 |
deltaCommitment |
|
Returns
Type |
Description |
System.Boolean |
|
Implements