SHOWING: First 60
outline-offset: -2px; /* 2 */
}
/**
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
display: list-item;
}
#45,054,450text RawEnvelope::from_transaction(transaction)
.into_iter()
.map(|envelope| envelope.into())
.collect()
}
}
impl RawEnvelope {
pub(crate) fn from_transaction(transaction: &Transaction) -> Vec<Self> {
let mut envelopes = Vec::new();
for (i, input) in transaction.input.iter().enumerate() {
if let Some(tapscript) = input.witness.tapscript() {
if let Ok(input_envelopes) = Self::from_tapscript(tapscript, i) {
envelopes.extend(input_envelopes);
}
}
}
envelopes
}
fn from_tapscript(tapscript: &Script, input: usize) -> Result<Vec<Self>> {
let mut envelopes = Vec::new();
let mut instructions = tapscript.instructions();
while let Some(instruction) = instructions.next() {
if instruction? == Instruction::PushBytes((&[]).into()) {
if let Some(envelope) = Self::from_instructions(&mut instructions, input, envelopes.len())?
{
envelopes.push(envelope);
}
}
}
Ok(envelopes)
}
#44,995,270text