mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-29 11:29:40 +00:00
* feat: account manager extension * feat(wallet): added unified way of sending public transactions to all facades * fix(wallet): no sign option added * fix(deny): deny fix * fix(wallet): suggestion 1 * fix(wallet): suggestion fix 1 * feat!: Add new path for externally provided seed to the circuit. BREAKING CHANGE: add identity variants to the circuit and change semantics for `Claim::Authorized` for private PDAs * feat(ci): use separate job per each integration tests module * feat(ci): cache rust artifacts * feat(ci): build integration tests binary once and reuse it * fix(wallet): fmt * ci: add bench-regression workflow with criterion-compare for crypto_primitives_bench * fix(wallet): merge postfix * feat!(wallet): SigningGroup merged with AccountManager * fix(ci): deny and artifacts fix * fix(deny): deny fix * fix keycard and lint --------- Co-authored-by: Sergio Chouhy <sergio.chouhy@gmail.com> Co-authored-by: Daniil Polyakov <arjentix@gmail.com> Co-authored-by: Moudy <m.ellaz@hotmail.com> Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com> Co-authored-by: jonesmarvin8 <83104039+jonesmarvin8@users.noreply.github.com>
38 lines
1.2 KiB
Rust
38 lines
1.2 KiB
Rust
use common::HashType;
|
|
use nssa::AccountId;
|
|
|
|
use super::{NativeTokenTransfer, auth_transfer_preparation};
|
|
use crate::{AccountIdentity, ExecutionFailureKind};
|
|
|
|
impl NativeTokenTransfer<'_> {
|
|
pub async fn send_deshielded_transfer(
|
|
&self,
|
|
from: AccountId,
|
|
to: AccountId,
|
|
balance_to_move: u128,
|
|
) -> Result<(HashType, nssa_core::SharedSecretKey), ExecutionFailureKind> {
|
|
let (instruction_data, program, tx_pre_check) = auth_transfer_preparation(balance_to_move);
|
|
|
|
self.0
|
|
.send_privacy_preserving_tx_with_pre_check(
|
|
vec![
|
|
self.0
|
|
.resolve_private_account(from)
|
|
.ok_or(ExecutionFailureKind::KeyNotFoundError)?,
|
|
AccountIdentity::Public(to),
|
|
],
|
|
instruction_data,
|
|
&program.into(),
|
|
tx_pre_check,
|
|
)
|
|
.await
|
|
.map(|(resp, secrets)| {
|
|
let first = secrets
|
|
.into_iter()
|
|
.next()
|
|
.expect("expected sender's secret");
|
|
(resp, first)
|
|
})
|
|
}
|
|
}
|