bindle icon indicating copy to clipboard operation
bindle copied to clipboard

Add convenience methods for adding a parcel to an invoice in code

Open thomastaylor312 opened this issue 3 years ago • 0 comments

As a user, I'd like to easily add a file to an invoice without having to manually calculate the sha of a file.

I think we should add the following functions to the Invoice impl:

fn add_parcel(&self, data: &[u8])
fn add_parcel_from_file(&self, file: &File)
fn add_parcel_from_path(&self, path: impl AsRef<Path>)

thomastaylor312 avatar Nov 18 '22 01:11 thomastaylor312