pub fn new(
		network: Network,
		master_key: ExtendedPrivKey,
		index: u32,
	) -> StacksResult<Self> {
		let private_key =
			derive_key(master_key, stacks_derivation_path(index)?)
				.to_priv()
				.inner;

		Ok(Self {
			network,
			private_key,
		})
	}
Creates credentials from the network and private key
stacks-core/src/wallet.rs