Top Description Fields Constructors Methods
org.bouncycastle.crypto

public Class Commitment

extends Object
Class Inheritance

General holding class for a commitment.

Field Summary

Modifier and TypeField and Description
private final byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
public
Commitment(byte[]
an encoding of the secret required to reveal the commitment.
secret
,
byte[]
an encoding of the sealed commitment.
commitment
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

an encoding of the sealed commitment.
getCommitment
()

The sealed commitment.

public byte[]

Returns:

an encoding of the secret associated with the commitment.
getSecret
()

The secret required to reveal the commitment.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commitmentback to summary
private final byte[] commitment
secretback to summary
private final byte[] secret

Constructor Detail

Commitmentback to summary
public Commitment(byte[] secret, byte[] commitment)

Base constructor.

Parameters
secret:byte[]

an encoding of the secret required to reveal the commitment.

commitment:byte[]

an encoding of the sealed commitment.

Method Detail

getCommitmentback to summary
public byte[] getCommitment()

The sealed commitment.

Returns:byte[]

an encoding of the sealed commitment.

getSecretback to summary
public byte[] getSecret()

The secret required to reveal the commitment.

Returns:byte[]

an encoding of the secret associated with the commitment.