1.0.5 • Published 3 years ago

neptune-sign-plugin v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

title: SignPlugin

description: Sign data, login and verify signature.

neptune-sign-plugin

This plugin implements a data signing API allowing to login and verify signature.

Installation

cordova plugin add neptune-sign-plugin

Supported Platforms

  • Windows*

List of Errors raised by plugin

Errors from native libraries are logged to file 'error.log'. When an error is thrown from plugin wrapper, one of these messages will be used:

ERRORS
Unable to sign data. No result from method call
Unable to sign data. Inner exception on sign data operation
Unable to login. No result from method call
Unable to login. Inner exception on login operation
Unable to verify signature. No result from method call
Unable to verify signature. Inner exception on verify signature operation

Signing Data: Signing data sample

The File plugin allows you to sign data. On success it creates 'signed.sgn' file with data signature. Last boolean parameter handles detailed signing data information if 'true', and hides it if 'false'. The code snippets in this section demonstrate this task:

cordova.plugins.SignPlugin.signPIV(success, errorstop, [signer], [datatosign], [true]);

Login: Login sample

The File plugin allows you to sign data. On success it creates 'login.sgn' file. The code snippets in this section demonstrate this task:

cordova.plugins.SignPlugin.loginPIV(success, errorstop, [signer]);

Verify Signature: Verify Signaturesample

The File plugin allows you to verify signed data. On success it creates 'result.vrf' file with 'true' or 'false' as result inside. The code snippets in this section demonstrate this task:

cordova.plugins.SignPlugin.verifyPIV(success, errorstop, [signer], [signeddata], [signature]);
1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago