Skip to content

Add a "prelude" #111

Open
Open
@dvdplm

Description

@dvdplm

When developing a protocol with manul one ends up with a big list of import e.g. like so:

use manul::{
    digest,
    protocol::{
        Artifact, BoxedFormat, BoxedRound, CommunicationInfo, DirectMessage, EchoBroadcast, EchoRoundParticipation,
        EntryPoint, FinalizeOutcome, LocalError, MessageValidationError, NoProtocolErrors, NormalBroadcast, PartyId,
        Payload, Protocol, ProtocolError, ProtocolMessage, ProtocolMessagePart, ProtocolValidationError, ReceiveError,
        RequiredMessageParts, RequiredMessages, Round, RoundId, TransitionInfo,
    },
    session::SessionParameters,
    signature::{self, Keypair},
};
use rand_core::{CryptoRngCore, OsRng};
use serde::{Deserialize, Serialize};

Can we perhaps provide a prelude so protocol authors can do use manul::prelude::* and get going quickly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions