6
6
#![ allow( clippy:: needless_borrow) ]
7
7
8
8
use {
9
- credentials:: CredUserSecretKey ,
10
9
curve25519_dalek:: scalar:: Scalar ,
11
10
digest:: Digest ,
12
11
fp_types:: { crypto:: MultiSigner , H160 } ,
53
52
noah_api:: {
54
53
anon_creds:: {
55
54
ac_confidential_open_commitment, ACCommitment , ACCommitmentKey ,
56
- ConfidentialAC , Credential ,
55
+ ACUserSecretKey , ConfidentialAC , Credential ,
57
56
} ,
58
57
anon_xfr:: {
59
58
abar_to_abar:: { finish_anon_xfr_note, init_anon_xfr_note, AXfrPreNote } ,
@@ -1303,7 +1302,7 @@ impl TransferOperationBuilder {
1303
1302
asset_record_template : & AssetRecordTemplate ,
1304
1303
tracing_policies : Option < TracingPolicies > ,
1305
1304
identity_commitment : Option < ACCommitment > ,
1306
- credential_record : Option < ( & CredUserSecretKey , & Credential , & ACCommitmentKey ) > ,
1305
+ credential_record : Option < ( & ACUserSecretKey , & Credential , & ACCommitmentKey ) > ,
1307
1306
) -> Result < & mut Self > {
1308
1307
let prng = & mut ChaChaRng :: from_entropy ( ) ;
1309
1308
if self . transfer . is_some ( ) {
@@ -1318,7 +1317,7 @@ impl TransferOperationBuilder {
1318
1317
AssetRecord :: from_template_with_identity_tracing (
1319
1318
prng,
1320
1319
asset_record_template,
1321
- user_secret_key. get_ref ( ) ,
1320
+ user_secret_key,
1322
1321
credential,
1323
1322
commitment_key,
1324
1323
)
@@ -1337,7 +1336,7 @@ impl TransferOperationBuilder {
1337
1336
pub fn add_output_and_store_blinds < R : CryptoRng + RngCore > (
1338
1337
& mut self ,
1339
1338
asset_record_template : & AssetRecordTemplate ,
1340
- credential_record : Option < ( & CredUserSecretKey , & Credential , & ACCommitmentKey ) > ,
1339
+ credential_record : Option < ( & ACUserSecretKey , & Credential , & ACCommitmentKey ) > ,
1341
1340
prng : & mut R ,
1342
1341
blinds : & mut ( ( Scalar , Scalar ) , Scalar ) ,
1343
1342
) -> Result < & mut Self > {
@@ -1364,7 +1363,7 @@ impl TransferOperationBuilder {
1364
1363
Some ( reveal_policy) => {
1365
1364
let conf_ac = ac_confidential_open_commitment (
1366
1365
prng,
1367
- user_secret_key. get_ref ( ) ,
1366
+ user_secret_key,
1368
1367
credential,
1369
1368
commitment_key,
1370
1369
& policy. enc_keys . attrs_enc_key ,
0 commit comments