sander / hierarchical-deterministic-keys

Hierarchical Deterministic Keys for the European Digital Identity Wallet
https://github.com/eu-digital-identity-wallet/eudi-doc-architecture-and-reference-framework/discussions/282
7 stars 4 forks source link

prototype.worksheet.sc non procesable? #30

Closed jftavira closed 5 months ago

jftavira commented 5 months ago

I've been trying to execute prototype.worksheet.sc in Scala 3 but i'm having some errors like this one:

scala> def I2OSP(i: BigInt, len: Int): OS = Array.fill[Byte](len - i.os.length)(0) || i.os -- [E008] Not Found Error: ----------------------------------------------------- 1 |def I2OSP(i: BigInt, len: Int): OS = Array.fill[Byte](len - i.os.length)(0) || i.os | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | value || is not a member of Array[Byte] 1 error found

Is "||" the logical "OR" really the operation needed? https://www.tutorialspoint.com/scala/scala_operators.htm

Regards, Juan

sander commented 5 months ago

Hi Juan, thank you for raising this issue. In 97fc16c I have:

Now it should run well in:

jftavira commented 5 months ago

Correct, I was able to run it in IntelliJ at least