Class Approval
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.Approval
-
- All Implemented Interfaces:
EncodableValue
public class Approval extends java.lang.Object implements EncodableValue
A struct containing a signature and the public key of the signer- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Approval.ApprovalBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Approval.ApprovalBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements Approval encoderSignature
getSignature()
PublicKey
getSigner()
void
setSignature(Signature signature)
void
setSigner(PublicKey signer)
-
-
-
Method Detail
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements Approval encoder- Specified by:
encode
in interfaceEncodableValue
- Parameters:
clve
- the encoder to be usedencodeType
- append encoded type?- Throws:
java.io.IOException
- thrown if an IO error occursCLValueEncodeException
- thrown if failed to encode a cl valueDynamicInstanceException
- thrown if it could not instantiate a typeNoSuchTypeException
- thrown if type not found
-
builder
public static Approval.ApprovalBuilder builder()
-
-