You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the signer (signer = private key) come from a sub-private key and verify from the parent public key? A case in point is openssl which can create a certificate chain. So, since openssl also has a CRL, it can revoke the certificate chain where subsequent signings cannot be verified.
Here is the code snippet
...
asyncopen(args?: any): Promise<void>{awaitthis.posts.open({type: Post,canPerform: (properties)=>{// This canPerfom will only return true if the post was signed by REQUIRED_SIGNER and another partyconstpublicKeys=properties.entry.publicKeys;// Public keys of signersif(publicKeys.find((publicKey)=>publicKey.equals(REQUIRED_SIGNER.publicKey)// <-- There may be additional codes to search for parental certificates such as self-signed certificates)&&publicKeys.find((publicKey)=>!publicKey.equals(REQUIRED_SIGNER.publicKey))){returntrue;}returnfalse;}});}}
...
awaitdb.posts.put(newPost("Hello world!"),{signers: [REQUIRED_SIGNER.sign.bind(REQUIRED_SIGNER)// <-- here using a private sub-key. But if it is revoked then the subsequent signing of the same signer cannot be verified.]});
...
The text was updated successfully, but these errors were encountered:
Can the signer (signer = private key) come from a sub-private key and verify from the parent public key? A case in point is openssl which can create a certificate chain. So, since openssl also has a CRL, it can revoke the certificate chain where subsequent signings cannot be verified.
Here is the code snippet
The text was updated successfully, but these errors were encountered: