When I add BitcoinDevKit as a dependency to the pallet-template
, I get compilation errors within the socks
crate that I don't get when compiling BDK standalone. It seems that BDK supports compilation to WASM
, but I am not sure.
Is it possible to use BDK functionality
within a pallet? How can I satisfy these compilation errors?
error[E0599]: no method named `writev` found for struct `UdpSocket` in the current scope
--> /home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/socks-0.3.4/src/v5.rs:391:21
|
391 | self.socket.writev([&header[..len + 3], buf])
| ^^^^^^ method not found in `UdpSocket`
|
= help: items from traits can only be used if the trait is implemented and in scope
note: `WritevExt` defines an item `writev`, perhaps you need to implement it
--> /home/max/.cargo/registry/src/github.com-1ecc6299db9ec823/socks-0.3.4/src/writev.rs:4:1
|
4 | pub trait WritevExt {
| ^^^^^^^^^^^^^^^^^^^