Package com.casper.sdk.model.key
Class Signature
- java.lang.Object
-
- com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex<AlgorithmTag>
-
- com.casper.sdk.model.key.Signature
-
- All Implemented Interfaces:
CasperSerializableObject,dev.oak3.sbs4j.interfaces.SerializableObject
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 classSignature.SignatureBuilder
-
Constructor Summary
Constructors Constructor Description Signature()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Signature.SignatureBuilderbuilder()static Signaturesign(AbstractPrivateKey key, byte[] msg)-
Methods inherited from class com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex
canEqual, equals, getAlgoTaggedHex, getKey, getTag, hashCode, serialize, setKey, setTag, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Method Detail
-
sign
public static Signature sign(AbstractPrivateKey key, byte[] msg) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
builder
public static Signature.SignatureBuilder builder()
-
-