|
|
|
|
|
BufferToPhrase (Function) In french: BufferVersPhrase Converts a buffer to a mnemonic phrase using the BIP39 algorithm.
MyBuffer is Buffer = HexaToBuffer("0123456789ABCDEF")  Trace(BufferToPhrase(MyBuffer, languageFrench)) // contains "abreuver barrage espèce associer pointe véhicule"  Trace(BufferToPhrase(MyBuffer, languageEnglish)) // contains "abuse boss fly battle rubber waste"  Trace(BufferToPhrase(MyBuffer, languageSpanish)) // contient "abuelo azul filtro arte prueba vengar"
Syntax
<Result> = BufferToPhrase(<Buffer to use> [, <Dictionary>])
<Result>: Character string Mnemonic phrase. <Buffer to use>: Buffer Buffer that will be used to generate the mnemonic phrase. The size of the buffer (in bytes) must be a multiple of 4 and less than or equal to 32. <Dictionary>: Optional character string or integer constant BIP39 dictionary to use. The words used in the mnemonic phrase will be taken from this dictionary. This parameter can correspond to: - the path of the BIP39 file to use.
- a constant that specifies which dictionary will be used:
| | languageEnglish | Uses the English BIP39 dictionary provided with the product. | languageFrench | Uses the French BIP39 dictionary provided with the product. | languageSpanish | Uses the Spanish BIP39 dictionary provided with the product. |
If this parameter is not specified, the function will use the BIP39 dictionary that corresponds to the current language in the executable (defined with Nation, for example).
If no dictionary is found, English will be used. Remarks BIP39 dictionaries BIP39 dictionaries are not equivalent to standard language dictionaries. Their construction follows precise rules. It is recommended to use the BIP39 dictionaries included in the product (French, English, Spanish). Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|