DigitalSignature - corda

corda / net.corda.core.crypto / DigitalSignature

# DigitalSignature

`open class DigitalSignature : OpaqueBytes`

A wrapper around a digital signature.

### Types

#### WithKey | A digital signature that identifies who the public key is owned by. `open class WithKey : DigitalSignature`

### Constructors

#### <init> | A wrapper around a digital signature. `DigitalSignature(bytes: ByteArray)`

### Extension Properties

#### isZero | `val OpaqueBytes.isZero: Boolean`

### Extension Functions

#### deserialize | Convenience extension method for deserializing a ByteSequence, utilising the defaults. `fun <T : Any> ByteSequence.deserialize(serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): T`
#### deserializeWithCompatibleContext | Additionally returns SerializationContext which was used for encoding. It might be helpful to know SerializationContext to use the same encoding in the reply. `fun <T : Any> ByteSequence.deserializeWithCompatibleContext(serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): ObjectWithCompatibleContext<T>`
#### hashAs | Compute the algorithm hash for the contents of the OpaqueBytes. `fun OpaqueBytes.hashAs(algorithm: String): SecureHash`
#### sha256 | Compute the SHA-256 hash for the contents of the OpaqueBytes. `fun OpaqueBytes.sha256(): SHA256`

### Inheritors

#### TransactionSignature | A wrapper over the signature output accompanied by signer's public key and signature metadata. This is similar to DigitalSignature.WithKey, but targeted to DLT transaction (or block of transactions) signatures. `class TransactionSignature : DigitalSignature`