Class LogicSigAccount


  • public class LogicSigAccount
    extends Object
    • Constructor Detail

      • LogicSigAccount

        public LogicSigAccount​(byte[] logic,
                               List<byte[]> args)
        Creates a new escrow LogicSig Account The address of the account is the hash of its program (logic)
        Parameters:
        logic - the bytes of program
        args - the arguments of the program
      • LogicSigAccount

        public LogicSigAccount​(byte[] logic,
                               List<byte[]> args,
                               PrivateKey privateKey)
                        throws NoSuchAlgorithmException,
                               IOException
        Creates a new delegated LogicSigAccount. This type of LogicSigAccount has the authority to sign transaction on behalf of another account, or so to say that account delegate the transaction signing to the program. If the delegating account is a multi-sig account, please pass in a multi-address for class construction (do not use this constructor in that case)
        Parameters:
        logic - the bytes of program
        args - the arguments of the program
        privateKey - the (only) private key of the delegating account
        Throws:
        NoSuchAlgorithmException
        IOException
      • LogicSigAccount

        public LogicSigAccount​(byte[] logic,
                               List<byte[]> args,
                               PrivateKey privateKey,
                               MultisigAddress ma)
                        throws IOException,
                               NoSuchAlgorithmException
        Creates a new delegated LogicSigAccount. This type of LogicSigAccount has the authority to sign transaction on behalf of another account, or so to say that account delegate the transaction signing to the program. The delegated Account here is a multi-sig account. To add additional signature from other member, use appendMultiSig method.
        Parameters:
        logic - the bytes of program
        args - the arguments of the program
        privateKey - is the private key of one of the member of delegating multi-sig account
        ma - is the multi-sig-address of the delegating account.
        Throws:
        IOException
        NoSuchAlgorithmException