Use RsaSignature2017
This commit is contained in:
parent
555846c99f
commit
ce33ee01cd
10 changed files with 176 additions and 156 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue