Skip to content

Commit e7a0c89

Browse files
BIP-0341's unspendable NUMS public key
1 parent 2b5fc81 commit e7a0c89

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/util.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ pub fn get_compression_factor<M: node::Marker>(node: &node::Node<M>) -> usize {
112112
unshared_len / shared_len
113113
}
114114

115+
// BIP-0341's unspendable NUMS public key
115116
fn unspendable_internal_key() -> secp256k1::XOnlyPublicKey {
116117
secp256k1::XOnlyPublicKey::from_slice(&[
117-
0xf5, 0x91, 0x9f, 0xa6, 0x4c, 0xe4, 0x5f, 0x83, 0x06, 0x84, 0x90, 0x72, 0xb2, 0x6c, 0x1b,
118-
0xfd, 0xd2, 0x93, 0x7e, 0x6b, 0x81, 0x77, 0x47, 0x96, 0xff, 0x37, 0x2b, 0xd1, 0xeb, 0x53,
119-
0x62, 0xd2,
118+
0x50, 0x92, 0x9b, 0x74, 0xc1, 0xa0, 0x49, 0x54, 0xb7, 0x8b, 0x4b, 0x60, 0x35, 0xe9, 0x7a,
119+
0x5e, 0x07, 0x8a, 0x5a, 0x0f, 0x28, 0xec, 0x96, 0xd5, 0x47, 0xbf, 0xee, 0x9a, 0xce, 0x80,
120+
0x3a, 0xc0,
120121
])
121122
.expect("key should be valid")
122123
}

0 commit comments

Comments
 (0)