-
Notifications
You must be signed in to change notification settings - Fork 28
feat!: pubsub Message types for signature policies #266
Conversation
key?: Uint8Array | ||
} | ||
|
||
export interface StrictNoSignMessage { | ||
topic: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No from
field in unsigned messages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, see the comment on StrictNoSign
. looks like the text was taken from here: https://github.com/libp2p/specs/tree/master/pubsub#signature-policy-options
Could just be |
Do these things need a We've needed that in other places, eg: if (msg.type === 'signed') {
// now safe to access `msg.sequenceNumber`, `msg.signature` etc without casting
} |
3d0cd77
to
7df06b0
Compare
BREAKING CHANGE: The `Message` type is now either a `StrictSignMessage` or a `StrictNoSignMessage`
7df06b0
to
0437bfa
Compare
## [@libp2p/interface-pubsub-v2.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-pubsub-v1.0.4...@libp2p/interface-pubsub-v2.0.0) (2022-07-31) ### ⚠ BREAKING CHANGES * The `Message` type is now either a `SignedMessage` or a `UnsignedMessage` * the inbound/outbound stream types have changed ### Features * pubsub Message types for signature policies ([#266](#266)) ([9eb710b](9eb710b)) ### Bug Fixes * make stream types Uint8ArrayLists ([#272](#272)) ([ace7e0c](ace7e0c)) ### Trivial Changes * update project config ([#271](#271)) ([59c0bf5](59c0bf5))
🎉 This PR is included in version @libp2p/interface-pubsub-v2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [@libp2p/interface-pubsub-compliance-tests-v2.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-pubsub-compliance-tests-v1.0.4...@libp2p/interface-pubsub-compliance-tests-v2.0.0) (2022-07-31) ### ⚠ BREAKING CHANGES * The `Message` type is now either a `SignedMessage` or a `UnsignedMessage` ### Features * pubsub Message types for signature policies ([#266](#266)) ([9eb710b](9eb710b)) ### Trivial Changes * update project config ([#271](#271)) ([59c0bf5](59c0bf5)) * update sibling dependencies [skip ci] ([fbd5281](fbd5281))
🎉 This PR is included in version @libp2p/interface-pubsub-compliance-tests-v2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: The
Message
type is now either aStrictSignMessage
or a
StrictNoSignMessage