return bitcoin transaction from sequence computation.

This commit is contained in:
fiatjaf
2024-10-27 09:37:17 -03:00
parent 4cb1ec89c0
commit a0aba28a2a
3 changed files with 33 additions and 16 deletions

View File

@@ -42,7 +42,7 @@ func ReadFromFile(data []byte) (*File, error) {
}
func UpgradeSequence(ctx context.Context, seq Sequence, initial []byte) (Sequence, error) {
result := seq.Compute(initial)
result, _ := seq.Compute(initial)
attestation := seq.GetAttestation()
url := fmt.Sprintf("%s/timestamp/%x", normalizeUrl(attestation.CalendarServerURL), result)