Signing class
The options used to configure a Key Signing.
Signing(
privateKey: 'in the form of String or Uint8List',
publicKey: 'in the form of String or Uint8List'
);
If a key needs to be generated
Signing.generateKey()
To verify the data is signed correctly call
bool verify = Signing().verify(signedData)
Properties
- defaultKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signature
↔ List<
int> -
getter/setter pair
- signingKey ↔ SigningKey
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
Uint8List dataToSign) → Uint8List - Create signature for init package using P-256 curve and SHA-256 as hashing algorithm.
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Uint8List signedData) → bool - Verify if the data is signed correctly with both keys.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
generateKey(
{NRFLogger? logger}) → SigningKeyData - Create SingingKeyData which includes a zip file that contains both a public and private key. The public key is in the form of c code and pem file in SingingKeyData.