new DigestSha256Signature(value)
A DigestSha256Signature extends Signature and holds the signature bits (which
are only the SHA256 digest) and an empty SignatureInfo for a data packet or
signed interest.
Create a new DigestSha256Signature object, possibly copying values from
another object.
Parameters:
Name | Type | Description |
---|---|---|
value |
DigestSha256Signature | (optional) If value is a DigestSha256Signature, copy its values. If value is omitted, the signature is unspecified. |
- Source:
Methods
clone() → {DigestSha256Signature}
Create a new DigestSha256Signature which is a copy of this object.
- Source:
Returns:
A new object which is a copy of this object.
getChangeCount() → {number}
Get the change count, which is incremented each time this object is changed.
- Source:
Returns:
The change count.
- Type
- number
getSignature() → {Blob}
Get the signature bytes (which are only the digest).
- Source:
Returns:
The signature bytes. If not specified, the value isNull().
- Type
- Blob
setSignature(signature)
Set the signature bytes to the given value.
Parameters:
Name | Type | Description |
---|---|---|
signature |
Blob |
- Source: