forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from public keys to certificates for non-repudiation (digital-…
…asset#8739) changelog_begin changelog_end Un-butchering the original design document
- Loading branch information
1 parent
6673efe
commit 5a08c52
Showing
9 changed files
with
101 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...onents/non-repudiation/src/main/scala/com/daml/nonrepudiation/CertificateRepository.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package com.daml.nonrepudiation | ||
|
||
import java.security.cert.X509Certificate | ||
|
||
object CertificateRepository { | ||
|
||
trait Read { | ||
def get(fingerprint: FingerprintBytes): Option[X509Certificate] | ||
} | ||
|
||
trait Write { | ||
def put(certificate: X509Certificate): FingerprintBytes | ||
} | ||
|
||
} | ||
|
||
trait CertificateRepository extends CertificateRepository.Read with CertificateRepository.Write |
20 changes: 0 additions & 20 deletions
20
...ime-components/non-repudiation/src/main/scala/com/daml/nonrepudiation/KeyRepository.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.