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

hyperledger / identus-cloud-agent / 10793991050

10 Sep 2024 01:56PM CUT coverage: 48.504% (-4.5%) from 52.962%
10793991050

push

web-flow
build: sbt and plugins dependency update (#1337)

Signed-off-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Co-authored-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
Co-authored-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>

7406 of 15269 relevant lines covered (48.5%)

0.49 hits per line

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

0.0
/pollux/vc-jwt/src/main/scala/org/hyperledger/identus/pollux/vc/jwt/MultiKey.scala
1
package org.hyperledger.identus.pollux.vc.jwt
2

3
import io.circe.*
4
import io.circe.syntax.*
5

6
case class MultiKey(
7
    publicKeyMultibase: Option[MultiBaseString] = None,
×
8
    secretKeyMultibase: Option[MultiBaseString] = None
×
9
) {
10
  val `type`: String = "Multikey"
11
  val `@context`: Set[String] = Set("https://w3id.org/security/multikey/v1")
×
12
}
13
object MultiKey {
14
  given multiKeyEncoder: Encoder[MultiKey] =
15
    (multiKey: MultiKey) =>
16
      Json
17
        .obj(
×
18
          ("@context", multiKey.`@context`.asJson),
×
19
          ("type", multiKey.`type`.asJson),
×
20
          ("publicKeyMultibase", multiKey.publicKeyMultibase.asJson),
×
21
          ("secretKeyMultibase", multiKey.secretKeyMultibase.asJson),
×
22
        )
23

24
  given multiKeyDecoder: Decoder[MultiKey] =
25
    (c: HCursor) =>
26
      for {
×
27
        publicKeyMultibase <- c.downField("publicKeyMultibase").as[Option[MultiBaseString]]
×
28
        secretKeyMultibase <- c.downField("secretKeyMultibase").as[Option[MultiBaseString]]
×
29
      } yield {
30
        MultiKey(
31
          publicKeyMultibase = publicKeyMultibase,
32
          secretKeyMultibase = secretKeyMultibase,
33
        )
34
      }
35

36
}
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