1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

find out the diff between python and js RSA signing

This commit is contained in:
Bill Barman 2018-11-20 17:27:17 +08:00
parent 99f215300e
commit 72e09f3c22

View File

@ -27,7 +27,10 @@ export default class DDO {
// var signatureBuffer = new Buffer(signature, 'ascii')
// var textBuffer = new Buffer(text, 'ascii')
// return key.hashAndVerify("sha256", text, signature, "utf8", false)
// FIXME: python does PKCS1_v1_5 padding, but this does not seem to be
// supported in ursa (only PKCS1_v1).
// return key.hashAndVerify("sha256", text, signature, "utf8", ursa.RSA_NO_PADDING)
/*
// setup with SHA256 RSA