src/handler/lib/policy.c
// comparator for pointers to compressed pubkeys
comparator for pointers to compressed pubkeys
comparator for pointers to compressed pubkeys
static int cmp_compressed_pubkeys(const void *a, const void *b) {
    const uint8_t *key_a = (const uint8_t *) a;
    const uint8_t *key_b = (const uint8_t *) b;
    for (int i = 0; i < 33; i++) {
        int diff = key_a[i] - key_b[i];
        if (diff != 0) {
            return diff;
        }
    }
    return 0;
}
static int cmp_compressed_pubkeys ( const void * a , const void * b ) { const uint8_t * key_a = ( const uint8_t * ) a ; const uint8_t * key_b = ( const uint8_t * ) b ; for ( int i = 0 ; i < 33 ; i ++ ) { int diff = key_a [ i ] - key_b [ i ] ; if ( diff != 0 ) { return diff ; } } return 0 ; }
comparator for pointers to compressed pubkeys
comparator for pointers to compressed pubkeys