Skip to content
Permalink
Browse files

Add the new checkSignature method

  • Loading branch information...
pxgamer committed Nov 5, 2018
1 parent 1ebe5d5 commit 167c8468114de8d9dc67ee2d6fd8a14320e83118
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/Arionum.js
@@ -230,6 +230,24 @@ class Arionum {
})
}

/**
* Check that a signature is valid against a public key.
*
* @return Promise
*/
checkSignature (signature, data, publicKey) {
return this
.getJson({
q: 'checkSignature',
signature: signature,
data: data,
public_key: publicKey
})
.then(data => {
return data
})
}

/**
* Retrieve a list of registered masternodes on the network.
*

0 comments on commit 167c846

Please sign in to comment.
You can’t perform that action at this time.