File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
src/commonMain/kotlin/io.iohk.atala.prism.didcomm.didpeer/core Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ buildscript {
2020}
2121
2222allprojects {
23- version = " 1.0.2 -alpha"
23+ version = " 1.0.3 -alpha"
2424 group = " io.iohk.atala.prism.didcomm"
2525
2626 repositories {
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22 spec . name = 'didcomm'
3- spec . version = '1.0.2 -alpha'
3+ spec . version = '1.0.3 -alpha'
44 spec . homepage = ''
55 spec . source = { :http => '' }
66 spec . authors = 'IOG'
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22 spec . name = 'didpeer'
3- spec . version = '1.0.2 -alpha'
3+ spec . version = '1.0.3 -alpha'
44 spec . homepage = ''
55 spec . source = { :http => '' }
66 spec . authors = 'IOG'
Original file line number Diff line number Diff line change 11package io.iohk.atala.prism.didcomm.didpeer.core
22
3+ import io.iohk.atala.prism.apollo.base64.base64UrlDecodedBytes
34import io.iohk.atala.prism.apollo.base64.base64UrlEncoded
4- import io.iohk.atala.prism.apollo.base64.base64UrlPadDecodedBytes
55import io.iohk.atala.prism.didcomm.didpeer.VerificationMaterialPeerDID
66import io.iohk.atala.prism.didcomm.didpeer.VerificationMethodTypeAgreement
77import io.iohk.atala.prism.didcomm.didpeer.VerificationMethodTypeAuthentication
@@ -39,9 +39,9 @@ fun fromJwk(verMaterial: VerificationMaterialPeerDID<out VerificationMethodTypeP
3939 // Base64.decodeBase64(value) // this line in JVM handle both Base64 Standard & Base64 URL
4040 // The following if condition is a workaround for a bug in Apollo Base64URLPad decoding which will be
4141 // fixed in the next release
42- var decoded = value.base64UrlPadDecodedBytes
43- if (decoded.isNotEmpty() && decoded.last().toInt() == 0 ) {
44- decoded = decoded.dropLast(1 ).toByteArray()
45- }
46- return decoded
42+ // var decoded = value.base64UrlDecodedBytes
43+ // if (decoded.isNotEmpty() && decoded.last().toInt() == 0) {
44+ // decoded = decoded.dropLast(1).toByteArray()
45+ // }
46+ return value.base64UrlDecodedBytes
4747}
Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ internal fun validateJson(value: String) {
2929internal fun validateRawKeyLength (key : ByteArray ) {
3030 // for all supported key types now (ED25519 and X25510) the expected size is 32
3131 if (key.size != 32 )
32- throw IllegalArgumentException (" Invalid key $key " )
32+ throw IllegalArgumentException (" Invalid key $key , size should be 32 and it is: ${key.size} " )
3333}
You can’t perform that action at this time.
0 commit comments