Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ngu/k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ STATIC mp_obj_t s_musig_pubkey_agg(size_t n_args, const mp_obj_t *pos_args, mp_m

int ok;
// default is to sort the pubkeys - so aggregate key is always the same from same set of keys regardless of order
bool sort_pubkeys = (args[2].u_obj == mp_const_true);
bool sort_pubkeys = mp_obj_is_true(args[2].u_obj);
if (sort_pubkeys){
ok = secp256k1_ec_pubkey_sort(secp256k1_context_static, pks, len_pubkeys);
if (!ok){
Expand Down Expand Up @@ -886,10 +886,10 @@ STATIC mp_obj_t s_musig_nonce_gen(size_t n_args, const mp_obj_t *pos_args, mp_ma
}

// new nonce produced by this function
// musig pubnonce
// musig secnonce
mp_obj_musig_secnonce_t *sn = m_new_obj(mp_obj_musig_secnonce_t);
sn->base.type = &s_musig_secnonce_type;
// musig secnonce
// musig pubnonce
mp_obj_musig_pubnonce_t *pn = m_new_obj(mp_obj_musig_pubnonce_t);
pn->base.type = &s_musig_pubnonce_type;

Expand Down