Skip to content

Commit

Permalink
Merge pull request #1986 from input-output-hk/nc/segfault
Browse files Browse the repository at this point in the history
Revert the use of libsodium for KES
  • Loading branch information
nc6 committed Nov 17, 2020
2 parents 508a31e + 8f9ef94 commit 9ebcfed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
16 changes: 8 additions & 8 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ write-ghc-environment-files: always
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-base
tag: acac87c7af2652b8d86d92c583b6c29234634866
--sha256: 1awxr663zgkn8dw13pjzzlzzz5y9y5l2fy14f87331gbrw6n2xdg
tag: 6226a0feb1d74f50a430242a1b4608fd48e10aad
--sha256: 034q2anpbc7bgp5draykz6lkzznxk31wy4nbgr4jv4f7778yls6b
subdir:
binary
binary/test
Expand All @@ -39,24 +39,24 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-prelude
tag: a5519e09958ad1605ed438d26dd7aad39167d0f9
--sha256: 03v46yn5bnkmwcm1zwihjhqvma4ssh3s1s1bfdizvq18y1janwf1
tag: 58e146c14e1349553d0ed75dd5245bbe65f0533e
--sha256: 166rm0sxldnf0g2g9jp4k0rgd01wcbm0g54fcw3bxilzr1dvwqfi
subdir:
cardano-prelude

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-prelude
tag: a5519e09958ad1605ed438d26dd7aad39167d0f9
--sha256: 03v46yn5bnkmwcm1zwihjhqvma4ssh3s1s1bfdizvq18y1janwf1
tag: 58e146c14e1349553d0ed75dd5245bbe65f0533e
--sha256: 166rm0sxldnf0g2g9jp4k0rgd01wcbm0g54fcw3bxilzr1dvwqfi
subdir:
cardano-prelude-test

source-repository-package
type: git
location: https://github.com/input-output-hk/iohk-monitoring-framework
tag: 034962a2729e0afff82c367121c1cc9637c7f45a
--sha256: 0ga5j9r55r3ika48x2w39clp4qh8kjp27qanxsg1s6jrl125yjac
tag: 65834fcfde3d86461a8f8525b04e4bdf9cc06e41
--sha256: 0vlxfbfa4skagngwirx5fnyhl8bycskgk0gnhaawrbi3w9qxbd1s
subdir: contra-tracer

source-repository-package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ import Cardano.Crypto.KES
genKeyKES,
)
import Cardano.Crypto.KES.Class (ContextKES)
import Cardano.Crypto.Libsodium.MLockedBytes (mlsbFromByteString)
import Cardano.Crypto.Seed (Seed, getSeedBytes, mkSeedFromBytes)
import Cardano.Crypto.Seed (Seed, mkSeedFromBytes)
import Cardano.Crypto.VRF
( CertifiedVRF,
SignKeyVRF,
Expand Down Expand Up @@ -217,7 +216,7 @@ mkKESKeyPair ::
(Word64, Word64, Word64, Word64, Word64) ->
(SignKeyKES v, VerKeyKES v)
mkKESKeyPair seed =
let sk = genKeyKES $ mlsbFromByteString $ getSeedBytes (mkSeedFromWords seed)
let sk = genKeyKES $ mkSeedFromWords seed
in (sk, deriveVerKeyKES sk)

mkAddr ::
Expand Down

0 comments on commit 9ebcfed

Please sign in to comment.