Add SwapBundle functionalities #827
Annotations
5 errors
the trait bound `[u8]: std::convert::From<bundle::BundleCommitment>` is not satisfied:
src/lib.rs#L534
error[E0277]: the trait bound `[u8]: std::convert::From<bundle::BundleCommitment>` is not satisfied
--> src/bundle.rs:534:10
|
534 | .into();
| ^^^^ the trait `std::convert::From<bundle::BundleCommitment>` is not implemented for `[u8]`, which is required by `bundle::BundleCommitment: std::convert::Into<_>`
|
= help: the following other types implement trait `std::convert::From<T>`:
`&'a [u8]` implements `std::convert::From<k256::pkcs8::der::asn1::OctetStringRef<'a>>`
`&'a [u8]` implements `std::convert::From<k256::pkcs8::der::asn1::VideotexStringRef<'a>>`
= note: required for `bundle::BundleCommitment` to implement `std::convert::Into<[u8]>`
|
the size for values of type `[u8]` cannot be known at compilation time:
src/lib.rs#L530
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/bundle.rs:530:13
|
530 | let sighash = BundleCommitment(hash_action_groups_txid_data(
| ^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
aborting due to 2 previous errors
error: aborting due to 2 previous errors
|
Clippy (beta)
Received a internal compiler error OR an unknown message type, view this in debug mode to view the payload
|
Clippy (beta)
{
"rendered": "For more information about this error, try `rustc --explain E0277`.\n",
"$message_type": "diagnostic",
"children": [],
"code": null,
"level": "failure-note",
"message": "For more information about this error, try `rustc --explain E0277`.",
"spans": []
}
|