Enum nash_protocol::protocol::dh_fill_pool::DhFillPoolRequest[][src]

pub enum DhFillPoolRequest {
    Bitcoin(K1FillPool),
    Ethereum(K1FillPool),
    NEO(R1FillPool),
}
Expand description

DhFillPool requests coordinate between the user’s client and the Nash server to gather a set of shared secret R values. The user sends a list of public ECDSA Points to the Nash server. The server sends back its own list of public Points. Both parties then multply the public point by the secret value to construct the same shared secret value (diffie-hellman). Bitcoin and Ethereum both use the Secp256k1 curve, while NEO users the Secp256r1 curve. While this request type holds both the secret and the public values, only the public values are used in creating the GraphQL request. The secrets are used to process a response. Pool requests will generate N new R values.

Variants

Bitcoin(K1FillPool)

Tuple Fields of Bitcoin

0: K1FillPool
Ethereum(K1FillPool)

Tuple Fields of Ethereum

0: K1FillPool

Tuple Fields of NEO

0: R1FillPool

Implementations

Build a GraphQL request to get R values for MPC signing. These values can be for secp256k1 or secp256r1 depending on curve. This sets the state r1 or k1 in the client with the secret values associated with DH, which will be used on a future request to set_pool

Create a new DhFillPool request for a given blockchain

Get blockchain associated with DH request

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Serialize a SignStates protocol request to a GraphQL string

Deserialize response to DhFillPool protocol response

Update pool with response from server

If you want to limit the amount of concurrency of a protocol return a Semaphore here

Any errors that result from execution of the protocol request The default implementation does nothing to state Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more