interveil-sdk 0.1.0

A portable execution language for intent-based Solana transactions — build, sign, and submit intents without holding keys
Documentation
1
2
3
4
5
6
7
8
use crate::error::VeilError;
use crate::intent::intent::Intent;

impl Intent {
    pub fn to_bytes(&self) -> Result<Vec<u8>, VeilError> {
        bincode::serialize(self).map_err(|e| VeilError::Serialization(e.to_string()))
    }
}