Replies: 5 comments 12 replies
-
Are you suggesting to use a blake3 digest then? As defined here: https://github.com/WebOfTrust/signify-ts/blob/850af59e4a6e136f2e9393d86c4edb5819904d79/test/core/diger.test.ts#L17. Does this have a significant advantage over the browser native API https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest ? |
Beta Was this translation helpful? Give feedback.
-
Is the documentType URL supposed to be a real resource on the internet? http://xbrl.org/PWD/2020-12-09/report-package is a 404 at the moment. |
Beta Was this translation helpful? Give feedback.
-
Thank you @lenkan for posting the digest difference (blake vs. sha) here GLEIF-IT/vlei-verifier#10 (comment) |
Beta Was this translation helpful? Give feedback.
-
@2byrds have we considered using Digital Signatures in XBRL 1.0 specification for signing xBRL-CSV files? A xBRL-CSV report package signed as per this spec will look like this: example-signed-csv-report/
├─ META-INF/
│ ├─ reportPackage.json
│ ├─ d6.json
│ ├─ signatures/
│ │ ├─ target_report.json
│ │ ├─ signature_report.cesr
│ │ ├─ target_file1.json
│ │ ├─ signature_file1.cesr
│ │ ├─ target_file2.json
│ │ └─ signature_file2.cesr
└─ reports/
├─ report.json
├─ file1.csv
└─ file2.csv d6.json file
report.json target file
file1.csv target file
signature_file1.cesr
|
Beta Was this translation helpful? Give feedback.
-
@bogtieba @daviddm @lenkan @tibor19 @Arsh-Sandhu @rodolfomiranda we have finished the first part of our transition to the agreed upon sha256 implementation. We no longer use Blake3, we now use sha256 prefixed hashes. We still need to sign the digest, instead of signing the file bytes (i'll post again when thats ready). And unless we hear otherwise, we plan to sign only the digest, not the prefixed digest. The following PRs from @aydarng (and small fix PRs) we have upgraded the vlei-verifier, reg-pilot-api, and reg-pilot tests to use/validate sha256 prefixed digests: I've updated the test images. We'll be transitioning to gleif docker hub soonish: |
Beta Was this translation helpful? Give feedback.
-
A discussion to standardize the digest and signature for the reg pilot. @tibor19 @daviddm @lenkan @aydarng @dawgithub @Arsh-Sandhu
We are converging towards a the following report.json in the META-INF directory of the report zip:
file
field.The initial questions to discuss:
Diger
test here https://github.com/WebOfTrust/signify-ts/blob/850af59e4a6e136f2e9393d86c4edb5819904d79/test/core/diger.test.ts#L12ser
is the digest of the file bytes. https://github.com/WebOfTrust/signify-ts/blob/850af59e4a6e136f2e9393d86c4edb5819904d79/test/core/signer.test.ts#L23Beta Was this translation helpful? Give feedback.
All reactions