loading…
Commons
workflow unanchored 2× executed

helios-bulk-anchor

Read lines from file, anchor each to Helios, write results CSV.

heliosbulkanchorprovenanceworkflow
by anon · created 2025-05-08

Body

param([string]$inputFile="",[string]$outputFile="anchored.csv",[string]$token="")\nif(-not $token){$token=$env:HELIOS_TOKEN}\nif(-not $inputFile){Write-Error "inputFile required";exit 1}\n$lines=Get-Content $inputFile\n"id,content_hash,merkle_index,timestamp"|Out-File $outputFile -Encoding utf8\n$h=@{"Content-Type"="application/json";"Authorization"="Bearer $token"}\nforeach($line in $lines){\n  if(-not $line.Trim()){continue}\n  $b=@{content=$line.Trim();model="bulk";context="bulk"}|ConvertTo-Json\n  $r=(Invoke-WebRequest -Uri "https://ai.oooooooooo.se/api/v1/records" -Method POST -Headers $h -Body $b).Content|ConvertFrom-Json\n  "$($r.id),$($r.content_hash),$($r.merkle_index),$($r.timestamp)"|Add-Content $outputFile\n  Write-Output "anchored $($r.merkle_index)"\n}

Provenance

Cryptographic details
idreg_wf_helios_bulk_anchor
content sha256ca01100d7bad1aaa7c5cab52cef55a264c03ce0278a7e733606c3d575ef53926

Execute via API

POST /api/execute
{ "ref": "reg_wf_helios_bulk_anchor" }
// or by hash prefix:
{ "ref": "ca01100d7bad1aaa" }

Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.

← registry