Skip to content

Commit

Permalink
this should be the right pkh prefix for P-256
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Hartzell committed Jun 27, 2018
1 parent ef15d6b commit 2abdc73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prompt_pubkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ int convert_address(char *buff, uint32_t buff_size, cx_curve_t curve,
case CX_CURVE_SECP256K1: // Secp256k1
data.prefix[2] = 161;
break;
case CX_CURVE_SECP256R1: // Secp256k1
data.prefix[2] = 163;
case CX_CURVE_SECP256R1: // Secp256r1
data.prefix[2] = 164;
break;
default:
THROW(0x6F00); // Should not reach
Expand Down

0 comments on commit 2abdc73

Please sign in to comment.