Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add the new checkSignature method
  • Loading branch information
owenvoke committed Nov 5, 2018
1 parent 1ebe5d5 commit 167c846
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Arionum.js
Expand Up @@ -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.
*
Expand Down

0 comments on commit 167c846

Please sign in to comment.