Nim-LibP2P Copyright (c) 2019 Status Research & Development GmbH
- Licensed under either of
- Apache License, version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. This file may not be copied, modified, or distributed except according to those terms.
Procs
func defaultMsgIdProvider(m: Message): Result[MessageID, ValidationResult] {. ...raises: [Defect], tags: [].}
- Source Edit
proc init(T: type Message; peer: Option[PeerInfo]; data: seq[byte]; topic: string; seqno: Option[uint64]; sign: bool = true): Message {. ...gcsafe, raises: [Defect, LPError], raises: [Defect].}
- Source Edit
proc init(T: type Message; peerId: PeerId; data: seq[byte]; topic: string; seqno: Option[uint64]): Message {....gcsafe, raises: [Defect, LPError], raises: [Defect].}
- Source Edit
proc sign(msg: Message; privateKey: PrivateKey): CryptoResult[seq[byte]] {. ...raises: [Defect], tags: [RootEffect].}
- Source Edit