moov-io / signedxml

pure go library for processing signed XML documents
MIT License
52 stars 44 forks source link

signer: add convenience method for creating a signer given an already built etree.Document #43

Closed dmlambea closed 1 year ago

dmlambea commented 1 year ago

Currently the signer creation requires the XML being provided as string. Then, internally it is converted to a Document. Some use cases already uses etree.Document so the signer creation forces it to be converted to string prior to be converted back to etree.Document.

This PR add a new convenience method so that the signer can consume an existing etree.Document.