1
0
Fork 0

Use RsaSignature2017

This commit is contained in:
Chocobozzz 2017-12-18 11:53:04 +01:00
parent 555846c99f
commit ce33ee01cd
No known key found for this signature in database
GPG key ID: 583A612D890159BE
10 changed files with 176 additions and 156 deletions

View file

@ -43,7 +43,8 @@ function isSignatureVerified (fromActor: ActorModel, signedDocument: object) {
function signObject (byActor: ActorModel, data: any) {
const options = {
privateKeyPem: byActor.privateKey,
creator: byActor.url
creator: byActor.url,
algorithm: 'RsaSignature2017'
}
return jsig.promises.sign(data, options)