Skip to content

Commit

Permalink
Embed public key and commitment with KeyShare, add serde for backup a…
Browse files Browse the repository at this point in the history
…nd transmission (#41)

* Embed public key and commitment with KeyShare, add serde for backup and transmission

Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
  • Loading branch information
bytemare committed Jul 17, 2024
1 parent a974901 commit 9a6f71c
Show file tree
Hide file tree
Showing 9 changed files with 1,077 additions and 278 deletions.
12 changes: 7 additions & 5 deletions .github/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ linters:
- containedctx
- contextcheck
- copyloopvar
- cyclop
#- cyclop
- decorder
#- depguard
- dogsled
Expand Down Expand Up @@ -144,6 +144,8 @@ linters-settings:
- opinionated
- performance
- style
disabled-checks:
- unnamedResult
gocyclo:
min-complexity: 15
godox:
Expand Down Expand Up @@ -269,7 +271,7 @@ issues:
run:
tests: false

output:
formats:
- format: github-actions
show-stats: true
#output:
# formats:
# - format: github-actions
# show-stats: true
2 changes: 1 addition & 1 deletion .github/licence-header.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPDX-License-Identifier: MIT

Copyright (C) 2023 Daniel Bourdrez. All Rights Reserved.
Copyright (C) 2024 Daniel Bourdrez. All Rights Reserved.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree or at
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Daniel Bourdrez
Copyright (c) 2024 Daniel Bourdrez

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions examples_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2023 Daniel Bourdrez. All Rights Reserved.
// Copyright (C) 2024 Daniel Bourdrez. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
Expand Down Expand Up @@ -73,7 +73,7 @@ func ExampleVerify() {
// You can verify any public key using the commitment. This can be run by a single participant or any other
// participant access to the participant's public key.
for _, keyshare := range shares {
// Let's derive the public key. Other parties won't have access to the private key, naturally.
// Let's get the public key. Other parties won't have access to the private key, naturally.
publicShare := keyshare.Public()

// Verify that the key share's public key is consistent with the commitment.
Expand Down
Loading

0 comments on commit 9a6f71c

Please sign in to comment.