INNER CODE UNIT · Go

readRowFile

cryptag/cryptag · servers/cryptag-webserver/main.go:612

func readRowFile(rowFilePath string, rowTags []string) (*types.Row, error) {
	b, err := ioutil.ReadFile(rowFilePath)
	if err != nil {
		return nil, err
	}

	var row types.Row
	// This populates row.Encrypted and row.Nonce
	err = json.Unmarshal(b, &row)
	if err != nil {
		return nil, err
	}

	row.RandomTags = rowTags

	return &row, nil
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…