Class

org.ergoplatform.sdk

SigmaProver

Related Doc: package sdk

Permalink

class SigmaProver extends AnyRef

Represents a prover for signing Ergo transactions and messages.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SigmaProver
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SigmaProver(_prover: AppkitProvingInterpreter, networkPrefix: NetworkPrefix)

    Permalink

    _prover

    an instance of interpreter and a prover combined

    networkPrefix

    the network prefix for Ergo addresses

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. implicit val ergoAddressEncoder: ErgoAddressEncoder

    Permalink
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getEip3Addresses: Seq[P2PKAddress]

    Permalink

    Returns a sequence of EIP-3 addresses associated with the prover's secret keys.

  12. def getP2PKAddress: P2PKAddress

    Permalink

    Returns the Pay-to-Public-Key (P2PK) address associated with the prover's public key.

    Returns the Pay-to-Public-Key (P2PK) address associated with the prover's public key. The returned address corresponds to the master secret derived from the mnemonic phrase configured in the ProverBuilder.

  13. def getSecretKey: BigInt

    Permalink

    Returns the prover's secret key.

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def reduce(stateCtx: BlockchainStateContext, tx: UnreducedTransaction, baseCost: Int): ReducedTransaction

    Permalink

    Reduces a given UnreducedTransaction using the prover's secret keys and the provided BlockchainStateContext with a base cost.

  20. def sign(stateCtx: BlockchainStateContext, tx: UnreducedTransaction, baseCost: Int): SignedTransaction

    Permalink

    Signs a given UnreducedTransaction using the prover's secret keys and the provided BlockchainStateContext.

    Signs a given UnreducedTransaction using the prover's secret keys and the provided BlockchainStateContext. Uses the given baseCost.

  21. def sign(stateCtx: BlockchainStateContext, tx: UnreducedTransaction): SignedTransaction

    Permalink

    Signs a given UnreducedTransaction using the prover's secret keys and the provided BlockchainStateContext.

    Signs a given UnreducedTransaction using the prover's secret keys and the provided BlockchainStateContext. Uses baseCost == 0.

  22. def signMessage(sigmaProp: SigmaProp, message: Array[Byte], hintsBag: HintsBag): Array[Byte]

    Permalink

    Sign arbitrary message under a key representing a statement provable via a sigma-protocol.

    Sign arbitrary message under a key representing a statement provable via a sigma-protocol.

    sigmaProp

    - public key

    message

    - message to sign

    hintsBag

    - additional hints for a signer (useful for distributed signing)

    returns

    - signature bytes

  23. def signReduced(tx: ReducedTransaction): SignedTransaction

    Permalink

    Signs a given ReducedTransaction using the prover's secret keys.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped