Function register

Source
pub async fn register(
    ws_rpc_url: impl AsRef<str>,
    blueprint_id: u64,
    keystore_uri: String,
    rpc_address: impl AsRef<str>,
) -> Result<()>
Expand description

Registers a blueprint.

§Arguments

  • ws_rpc_url - WebSocket RPC URL for the Tangle Network
  • blueprint_id - ID of the blueprint to register
  • keystore_uri - URI for the keystore

§Errors

Returns an error if:

  • Failed to connect to the Tangle Network
  • Failed to sign or submit the transaction
  • Transaction failed
  • Missing ECDSA key

§Panics

Panics if:

  • Failed to create keystore
  • Failed to get keys from keystore