File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -134,25 +134,22 @@ pub use descriptor::pretaproot::{traits::PreTaprootDescriptorTrait, PreTaprootDe
134
134
135
135
///Public key trait which can be converted to Hash type
136
136
pub trait MiniscriptKey : Clone + Eq + Ord + fmt:: Debug + fmt:: Display + hash:: Hash {
137
- /// Check if the publicKey is uncompressed. The default
138
- /// implementation returns false
137
+ /// Returns true if the pubkey is uncompressed. Defaults to `false`.
139
138
fn is_uncompressed ( & self ) -> bool {
140
139
false
141
140
}
142
141
143
- /// Check if the publicKey is x-only. The default
144
- /// implementation returns false
145
- //
142
+ /// Returns true if the pubkey is an x-only pubkey. Defaults to `false`.
146
143
// This is required to know what in DescriptorPublicKey to know whether the inner
147
144
// key in allowed in descriptor context
148
145
fn is_x_only_key ( & self ) -> bool {
149
146
false
150
147
}
151
148
152
- /// The associated Hash type with the publicKey
149
+ /// The associated [` Hash`] type for this pubkey.
153
150
type Hash : Clone + Eq + Ord + fmt:: Display + fmt:: Debug + hash:: Hash ;
154
151
155
- /// Converts an object to PublicHash
152
+ /// Converts this key to the associated pubkey hash.
156
153
fn to_pubkeyhash ( & self ) -> Self :: Hash ;
157
154
}
158
155
You can’t perform that action at this time.
0 commit comments