Package com.syntifi.casper.sdk.model.key
Class Signature
- java.lang.Object
-
- com.syntifi.casper.sdk.model.key.AbstractSerializedKeyTaggedHex<AlgorithmTag>
-
- com.syntifi.casper.sdk.model.key.Signature
-
- All Implemented Interfaces:
EncodableValue
public class Signature extends AbstractSerializedKeyTaggedHex<AlgorithmTag>
Hex-encoded cryptographic public key, including the algorithm tag prefix.- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Signature.SignatureBuilder
-
Constructor Summary
Constructors Constructor Description Signature()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Signature.SignatureBuilder
builder()
static Signature
sign(com.syntifi.crypto.key.AbstractPrivateKey key, byte[] msg)
-
Methods inherited from class com.syntifi.casper.sdk.model.key.AbstractSerializedKeyTaggedHex
canEqual, encode, equals, getAlgoTaggedHex, getKey, getTag, hashCode, setKey, setTag
-
-
-
-
Method Detail
-
sign
public static Signature sign(com.syntifi.crypto.key.AbstractPrivateKey key, byte[] msg) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
builder
public static Signature.SignatureBuilder builder()
-
-