Commit Graph

12 Commits

Author SHA1 Message Date
Diederik Loerakker 99507107b6
Merge pull request #359 from protolambda/optional-sig-origin-seq
Signing policy + optional Signature, From and Seqno
2020-07-23 08:47:47 +03:00
Raúl Kripalani 49274b0e8a
migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
Steven Allen bd1a4630b9 move to go-libp2p-pubsub
Updates for move from go-floodsub to go-libp2p-pubsub.

fixes https://github.com/libp2p/go-libp2p-pubsub/issues/4
2018-10-18 21:10:16 +01:00
vyzo 8a8966b4ab fix public key extraction for abnormal ExtractPublicKey semantics 2018-10-14 11:59:28 +03:00
vyzo 4dc796359e try to extract the key in order to decide whether to attach the key 2018-10-14 02:22:20 +03:00
vyzo b353ddca06 more idiomatic message copying for signature purposes 2018-10-14 02:22:20 +03:00
vyzo 9fa8f64fd3 prefix signed data with libp2p-pubsub: 2018-10-14 02:22:20 +03:00
vyzo 777c68fe0e reify key extraction logic, with more context in error messages 2018-10-14 02:22:20 +03:00
vyzo cd32e1772e use MatchesPublicKey, don't rewrite it. 2018-10-14 02:22:20 +03:00
vyzo 60a06ce961 implement signMessage and verifyMessageSignature 2018-10-14 02:22:20 +03:00
vyzo a6c349b6f0 sign messages when a signing key is present 2018-10-14 02:22:20 +03:00
vyzo 7c508b4fba implement validateSignature 2018-10-14 02:22:20 +03:00