Class HintsKeyPublicationTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HintsKeyPublicationTransactionBody,HintsKeyPublicationTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HintsKeyPublicationTransactionBody,HintsKeyPublicationTransactionBody.Builder>
com.hedera.hapi.services.auxiliary.hints.legacy.HintsKeyPublicationTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, HintsKeyPublicationTransactionBodyOrBuilder, Cloneable
Enclosing class:
HintsKeyPublicationTransactionBody

public static final class HintsKeyPublicationTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<HintsKeyPublicationTransactionBody,HintsKeyPublicationTransactionBody.Builder> implements HintsKeyPublicationTransactionBodyOrBuilder
 *
 A transaction body to publish a node's hinTS key for a certain
 party id and number of parties. A hinTS key is an extended
 public key; that is, a BLS public key combined with "hints"
 derived from the matching private key that a signature
 aggregator can use to prove well-formedness of an aggregate
 public key by an efficiently verifiable SNARK.
 
Protobuf type com.hedera.hapi.services.auxiliary.hints.HintsKeyPublicationTransactionBody
  • Method Details

    • getPartyId

      public int getPartyId()
       *
       The party id for which the hinTS key is being published;
       must be in the range [0, num_parties).
       <p>
       This value MUST be set to a non-negative integer.<br/>
       
      uint32 party_id = 1;
      Specified by:
      getPartyId in interface HintsKeyPublicationTransactionBodyOrBuilder
      Returns:
      The partyId.
    • setPartyId

      public HintsKeyPublicationTransactionBody.Builder setPartyId(int value)
       *
       The party id for which the hinTS key is being published;
       must be in the range [0, num_parties).
       <p>
       This value MUST be set to a non-negative integer.<br/>
       
      uint32 party_id = 1;
      Parameters:
      value - The partyId to set.
      Returns:
      This builder for chaining.
    • clearPartyId

       *
       The party id for which the hinTS key is being published;
       must be in the range [0, num_parties).
       <p>
       This value MUST be set to a non-negative integer.<br/>
       
      uint32 party_id = 1;
      Returns:
      This builder for chaining.
    • getNumParties

      public int getNumParties()
       *
       The number of parties in the hinTS scheme.
       
      uint32 num_parties = 2;
      Specified by:
      getNumParties in interface HintsKeyPublicationTransactionBodyOrBuilder
      Returns:
      The numParties.
    • setNumParties

      public HintsKeyPublicationTransactionBody.Builder setNumParties(int value)
       *
       The number of parties in the hinTS scheme.
       
      uint32 num_parties = 2;
      Parameters:
      value - The numParties to set.
      Returns:
      This builder for chaining.
    • clearNumParties

       *
       The number of parties in the hinTS scheme.
       
      uint32 num_parties = 2;
      Returns:
      This builder for chaining.
    • getHintsKey

      public com.google.protobuf.ByteString getHintsKey()
       *
       The party's hinTS key.
       
      bytes hints_key = 3;
      Specified by:
      getHintsKey in interface HintsKeyPublicationTransactionBodyOrBuilder
      Returns:
      The hintsKey.
    • setHintsKey

      public HintsKeyPublicationTransactionBody.Builder setHintsKey(com.google.protobuf.ByteString value)
       *
       The party's hinTS key.
       
      bytes hints_key = 3;
      Parameters:
      value - The hintsKey to set.
      Returns:
      This builder for chaining.
    • clearHintsKey

       *
       The party's hinTS key.
       
      bytes hints_key = 3;
      Returns:
      This builder for chaining.