-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x509 certificates for validation #26
Conversation
// encryptionPubKey.publicKey is an ASN.1/DER encoded X.509/SPKI key, the last 65 | ||
// bytes are the uncompressed public key | ||
return publicKey.encoded.takeLast(65).toByteArray() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh cool :-). This starts with 04
and doesn't include the ---- END BLAH ----
tags, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! added an example of what it looks like here https://github.com/uma-universal-money-address/uma-kotlin-sdk/pull/26/files#diff-c3d18805abe410a5e76b66b0d653e58f34ae72a732bb2d5bb85c033f48d98410R30
assertNotNull(parsedResponse); | ||
assertEquals(keysOnlyResponse, parsedResponse); | ||
|
||
PubKeyResponse certsOnlyResponse = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also test a response that has all 4 for the backwards compat case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed on slack! will handle this alongside backwards compatibility for the other data models
No description provided.