• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

input-output-hk / atala-prism-building-blocks / 5286569716

16 Jun 2023 05:33AM UTC coverage: 27.472% (+0.4%) from 27.056%
5286569716

Pull #543

patlo-iog
chore: improve error message when WALLET_SEED parsing fail
Pull Request #543: feat(prism-agent): integrate DID secret storage with Vault

117 of 117 new or added lines in 11 files covered. (100.0%)

2484 of 9042 relevant lines covered (27.47%)

0.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/shared/src/main/scala/io/iohk/atala/shared/models/Base64UrlString.scala
1
package io.iohk.atala.shared.models
2

3
import io.iohk.atala.shared.utils.Base64Utils
4
import scala.util.Try
5

6
opaque type Base64UrlString = String
7

8
object Base64UrlString {
1✔
9
  def fromStringUnsafe(s: String): Base64UrlString = s
×
10
  def fromString(s: String): Try[Base64UrlString] = Try(Base64Utils.decodeURL(s)).map(_ => s)
1✔
11
  def fromByteArray(bytes: Array[Byte]): Base64UrlString = Base64Utils.encodeURL(bytes)
12

13
  extension (s: Base64UrlString) {
1✔
14
    def toStringNoPadding: String = s.takeWhile(_ != '=')
1✔
15
    def toByteArray: Array[Byte] = Base64Utils.decodeURL(s)
×
16
    def toString: String = s
17
  }
18
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc