public class DataSignature extends Object implements Signable
| Constructor and Description |
|---|
DataSignature() |
DataSignature(byte[] data) |
DataSignature(SignatureScheme scheme,
Account acct,
byte[] data) |
DataSignature(SignatureScheme scheme,
Account acct,
String data) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(BinaryReader reader) |
void |
deserializeUnsigned(BinaryReader reader) |
Address[] |
getAddressU160ForVerifying() |
byte[] |
getData() |
void |
serialize(BinaryWriter writer) |
void |
serializeUnsigned(BinaryWriter writer) |
byte[] |
sign(Account account,
SignatureScheme scheme) |
byte[] |
signature() |
boolean |
verifySignature(Account account,
byte[] data,
byte[] signature) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHashDatafrom, toArray, toHexStringpublic DataSignature()
public DataSignature(byte[] data)
public DataSignature(SignatureScheme scheme, Account acct, byte[] data)
public DataSignature(SignatureScheme scheme, Account acct, String data)
public byte[] getData()
public byte[] signature()
public byte[] sign(Account account, SignatureScheme scheme) throws Exception
public boolean verifySignature(Account account, byte[] data, byte[] signature) throws Exception
verifySignature in interface SignableExceptionpublic Address[] getAddressU160ForVerifying()
getAddressU160ForVerifying in interface Signablepublic void deserialize(BinaryReader reader) throws IOException
deserialize in interface SerializableIOExceptionpublic void deserializeUnsigned(BinaryReader reader) throws IOException
deserializeUnsigned in interface SignableIOExceptionpublic void serializeUnsigned(BinaryWriter writer) throws IOException
serializeUnsigned in interface SignableIOExceptionpublic void serialize(BinaryWriter writer) throws IOException
serialize in interface SerializableIOExceptionCopyright © 2020. All rights reserved.