You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
931 B
22 lines
931 B
package datekeys
|
|
|
|
import _ "embed"
|
|
|
|
// RecoveryAnnex is the text that the official SDK saves next to each .dkc
|
|
// (spec §62.1, rule 27): the informative annex of the specification on how
|
|
// to open a capsule without DateKeys software (spec §79), under a title that
|
|
// names the version of the specification and the SHA-256 of its text. It is
|
|
// the same for every capsule and holds nothing of one. TestRecoveryAnnex
|
|
// checks that it is §79 of spec/DateKeys_Protocol_Specification_v<SpecVersion>.md,
|
|
// and writes it again, when a new version is approved, with
|
|
//
|
|
// DATEKEYS_WRITE_ANNEX=1 go test -run TestRecoveryAnnex .
|
|
//
|
|
//go:embed annex/recovery.md
|
|
var RecoveryAnnex string
|
|
|
|
// RecoveryAnnexSuffix is what the official SDK appends to the name of a .dkc
|
|
// to name the file of its recovery annex: carta.dkc.recuperacion.txt. The
|
|
// annex is in Spanish, as the specification.
|
|
const RecoveryAnnexSuffix = ".recuperacion.txt"
|