PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
  • BIP39 dictionaries
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
BufferToPhrase (Function)
In french: BufferVersPhrase
Converts a buffer to a mnemonic phrase using the BIP39 algorithm.
Example
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:
    languageEnglishUses the English BIP39 dictionary provided with the product.
    languageSpanishUses the Spanish BIP39 dictionary provided with the product.
    languageFrenchUses the French 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
Component : wd260std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment