def parse.salt.of

bend-kit-postgres@0.3.0.0 · scram.bend:94

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import Base

94def parse.salt.of(empty: Bool, +nonce: String, +salt: String, +it: String) -> Result<&1, &1, U32 & String, Parsed>:
95  match empty:
96    case True{}:
97      Fail{(22, "SCRAM salt is empty")}
98    case False{}:
99      parse.iters(Bool.and(Bool.not(String.is_empty(it)), digits(it)), U32.read(it), nonce, salt)

Uses (13)

Used by (1)